Changeset 11732 in vbox
- Timestamp:
- Aug 28, 2008 12:33:34 AM (16 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedFolders/testcase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedFolders/testcase/Makefile.kmk
r11725 r11732 32 32 tstShflSizes_DEFS = VBOX_HGCM 33 33 tstShflSizes_SOURCES = tstShflSizes.cpp 34 tstShflSizes_LIBS = $(LIB_RUNTIME)35 34 36 35 ifdef VBOX_WITH_TESTCASES … … 61 60 $(PATH_TARGET)/tstShflSizes.run: $$(INSTARGET_tstShflSizes) 62 61 $(QUIET)$(RM) -f $@ 63 $( if $(eq $(KBUILD_TARGET),darwin),$(REDIRECT) -E 'DYLD_LIBRARY_PATH=$(dir $^)' --) $(INSTARGET_tstShflSizes) quiet62 $(INSTARGET_tstShflSizes) quiet 64 63 $(QUIET)$(APPEND) "$@" "done" 65 64 -
trunk/src/VBox/HostServices/SharedFolders/testcase/tstShflSizes.cpp
r9460 r11732 1 1 /** @file 2 * 3 * Testcase for shared folder structure sizes. 2 * tstShflSize - Testcase for shared folder structure sizes. 4 3 * Run this on Linux and Windows, then compare. 5 4 */ … … 25 24 *******************************************************************************/ 26 25 #include <VBox/shflsvc.h> 27 #include <iprt/stream.h>28 26 #include <iprt/string.h> 27 #include <stdio.h> 29 28 30 29 #define STRUCT(t, size) \ 31 30 do { \ 32 31 if (fPrintChecks) \ 33 RTPrintf(" STRUCT(" #t ", %d);\n", (int)sizeof(t)); \32 printf(" STRUCT(" #t ", %d);\n", (int)sizeof(t)); \ 34 33 else if ((size) != sizeof(t)) \ 35 34 { \ 36 RTPrintf("%30s: %d expected %d!\n", #t, (int)sizeof(t), (size)); \35 printf("%30s: %d expected %d!\n", #t, (int)sizeof(t), (size)); \ 37 36 cErrors++; \ 38 37 } \ 39 38 else if (!fQuiet)\ 40 RTPrintf("%30s: %d\n", #t, (int)sizeof(t)); \39 printf("%30s: %d\n", #t, (int)sizeof(t)); \ 41 40 } while (0) 42 41 … … 52 51 bool fPrintChecks = !fQuiet && argc != 1; 53 52 54 RTPrintf("tstShflSizes: TESTING\n");53 printf("tstShflSizes: TESTING\n"); 55 54 56 55 /* … … 129 128 */ 130 129 if (!cErrors) 131 RTPrintf("tstShflSizes: SUCCESS\n");130 printf("tstShflSizes: SUCCESS\n"); 132 131 else 133 RTPrintf("tstShflSizes: FAILURE - %d errors\n", cErrors);132 printf("tstShflSizes: FAILURE - %d errors\n", cErrors); 134 133 return !!cErrors; 135 134 }
Note:
See TracChangeset
for help on using the changeset viewer.