VirtualBox

Changeset 11732

Show
Ignore:
Timestamp:
08/28/08 02:33:34 (3 months ago)
Author:
vboxsync
Message:

tstShflSize: don't depend on VBoxRT

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/VBox/HostServices/SharedFolders/testcase/Makefile.kmk

    r11725 r11732  
    3232tstShflSizes_DEFS     = VBOX_HGCM 
    3333tstShflSizes_SOURCES  = tstShflSizes.cpp 
    34 tstShflSizes_LIBS     = $(LIB_RUNTIME) 
    3534 
    3635ifdef VBOX_WITH_TESTCASES 
     
    6160$(PATH_TARGET)/tstShflSizes.run: $$(INSTARGET_tstShflSizes) 
    6261        $(QUIET)$(RM) -f $@ 
    63         $(if $(eq $(KBUILD_TARGET),darwin),$(REDIRECT) -E 'DYLD_LIBRARY_PATH=$(dir $^)' --) $(INSTARGET_tstShflSizes) quiet 
     62        $(INSTARGET_tstShflSizes) quiet 
    6463        $(QUIET)$(APPEND) "$@" "done" 
    6564 
  • trunk/src/VBox/HostServices/SharedFolders/testcase/tstShflSizes.cpp

    r9460 r11732  
    11/** @file 
    2  * 
    3  * Testcase for shared folder structure sizes. 
     2 * tstShflSize - Testcase for shared folder structure sizes. 
    43 * Run this on Linux and Windows, then compare. 
    54 */ 
     
    2524*******************************************************************************/ 
    2625#include <VBox/shflsvc.h> 
    27 #include <iprt/stream.h> 
    2826#include <iprt/string.h> 
     27#include <stdio.h> 
    2928 
    3029#define STRUCT(t, size)   \ 
    3130    do { \ 
    3231        if (fPrintChecks) \ 
    33             RTPrintf("    STRUCT(" #t ", %d);\n", (int)sizeof(t)); \ 
     32            printf("    STRUCT(" #t ", %d);\n", (int)sizeof(t)); \ 
    3433        else if ((size) != sizeof(t)) \ 
    3534        { \ 
    36             RTPrintf("%30s: %d expected %d!\n", #t, (int)sizeof(t), (size)); \ 
     35            printf("%30s: %d expected %d!\n", #t, (int)sizeof(t), (size)); \ 
    3736            cErrors++; \ 
    3837        } \ 
    3938        else if (!fQuiet)\ 
    40             RTPrintf("%30s: %d\n", #t, (int)sizeof(t)); \ 
     39            printf("%30s: %d\n", #t, (int)sizeof(t)); \ 
    4140    } while (0) 
    4241 
     
    5251    bool fPrintChecks = !fQuiet && argc != 1; 
    5352 
    54     RTPrintf("tstShflSizes: TESTING\n"); 
     53    printf("tstShflSizes: TESTING\n"); 
    5554 
    5655    /* 
     
    129128     */ 
    130129    if (!cErrors) 
    131         RTPrintf("tstShflSizes: SUCCESS\n"); 
     130        printf("tstShflSizes: SUCCESS\n"); 
    132131    else 
    133         RTPrintf("tstShflSizes: FAILURE - %d errors\n", cErrors); 
     132        printf("tstShflSizes: FAILURE - %d errors\n", cErrors); 
    134133    return !!cErrors; 
    135134} 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy