Changeset 11836 in vbox for trunk/src/VBox/Runtime/testcase/tstPath.cpp
- Timestamp:
- Aug 29, 2008 4:52:20 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 35668
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstPath.cpp
r8245 r11836 33 33 *******************************************************************************/ 34 34 #include <iprt/path.h> 35 #include <iprt/runtime.h> 35 #include <iprt/process.h> 36 #include <iprt/initterm.h> 36 37 #include <iprt/stream.h> 37 38 #include <iprt/err.h> … … 45 46 { \ 46 47 cErrors++; \ 47 RTPrintf("\ntstPath: FAILED calling " #method " at line %d: rc=% Vrc\n", __LINE__, rc); \48 RTPrintf("\ntstPath: FAILED calling " #method " at line %d: rc=%Rrc\n", __LINE__, rc); \ 48 49 } \ 49 50 } while (0) … … 61 62 62 63 /* 63 * RTPathProgram, RTPathUserHome 64 * RTPathProgram, RTPathUserHome and RTProcGetExecutableName. 64 65 */ 65 66 char szPath[RTPATH_MAX]; … … 70 71 if (RT_SUCCESS(rc)) 71 72 RTPrintf("UserHome={%s}\n", szPath); 73 if (RTProcGetExecutableName(szPath, sizeof(szPath)) == szPath) 74 RTPrintf("ExecutableName={%s}\n", szPath); 75 else 76 { 77 RTPrintf("tstPath: FAILED - RTProcGetExecutableName\n"); 78 cErrors++; 79 } 80 72 81 73 82 /*
Note:
See TracChangeset
for help on using the changeset viewer.