Changeset 38737 in vbox for trunk/src/VBox/HostServices/SharedFolders/testcase/tstShflCase.cpp
- Timestamp:
- Sep 13, 2011 2:09:15 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedFolders/testcase/tstShflCase.cpp
r33595 r38737 1 1 /** @file 2 * 3 * Testcase for shared folder case conversion 2 * Testcase for shared folder case conversion code. 4 3 */ 5 4 6 5 /* 7 * Copyright (C) 2006-20 07Oracle Corporation6 * Copyright (C) 2006-2011 Oracle Corporation 8 7 * 9 8 * This file is part of VirtualBox Open Source Edition (OSE), as … … 19 18 * Header Files * 20 19 *******************************************************************************/ 20 #define LOG_GROUP LOG_GROUP_MISC 21 #define LOG_ENABLED 21 22 #include <VBox/shflsvc.h> 22 #include < iprt/stream.h>23 #include <VBox/log.h> 23 24 #include <iprt/alloc.h> 24 25 #include <iprt/assert.h> 26 #include <iprt/file.h> 25 27 #include <iprt/fs.h> 26 28 #include <iprt/dir.h> 27 #include <iprt/ file.h>29 #include <iprt/initterm.h> 28 30 #include <iprt/path.h> 29 31 #include <iprt/string.h> … … 31 33 #include <stdio.h> 32 34 33 /* override for linux host */ 35 36 /******************************************************************************* 37 * Defined Constants And Macros * 38 *******************************************************************************/ 39 /* Override slash for non-windows hosts. */ 34 40 #undef RTPATH_DELIMITER 35 41 #define RTPATH_DELIMITER '\\' 36 42 37 #undef Log 38 #define Log(a) printf a 39 #undef Log2 40 #define Log2 Log 41 43 /* Use our own RTPath and RTDir methods. */ 42 44 #define RTPathQueryInfo rtPathQueryInfo 43 45 #define RTDirOpenFiltered rtDirOpenFiltered … … 45 47 #define RTDirReadEx rtDirReadEx 46 48 49 50 /******************************************************************************* 51 * Global Variables * 52 *******************************************************************************/ 47 53 static int iDirList = 0; 48 54 static int iDirFile = 0; … … 103 109 if (!strcmp(pszPath, "c:\\*")) 104 110 iDirList = 1; 105 else 106 if (!strcmp(pszPath, "c:\\test dir\\*")) 111 else if (!strcmp(pszPath, "c:\\test dir\\*")) 107 112 iDirList = 2; 108 else 109 if (!strcmp(pszPath, "c:\\test dir\\SUBDIR\\*")) 113 else if (!strcmp(pszPath, "c:\\test dir\\SUBDIR\\*")) 110 114 iDirList = 3; 111 115 else … … 401 405 402 406 403 int main( int argc, char **argv)407 int main() 404 408 { 405 409 char szTest[128]; 410 411 RTR3InitExeNoArguments(0); 412 RTLogFlush(NULL); 413 RTLogDestinations(NULL, "stdout"); 414 RTLogGroupSettings(NULL, "misc=~0"); 415 RTLogFlags(NULL, "unbuffered"); 406 416 407 417 strcpy(szTest, "c:\\test Dir\\z.bAt"); … … 425 435 return 0; 426 436 } 437
Note:
See TracChangeset
for help on using the changeset viewer.