Changeset 15808 in vbox for trunk/src/VBox/Runtime/testcase/tstPath.cpp
- Timestamp:
- Jan 5, 2009 3:44:53 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 41386
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstPath.cpp
r15806 r15808 40 40 #include <iprt/param.h> 41 41 42 #if defined (RT_OS_WINDOWS)43 # include <direct.h> // for getcwd44 #else45 # include <unistd.h> // for getcwd46 #endif47 #include <errno.h> // for getcwd48 42 49 43 #define CHECK_RC(method) \ … … 179 173 if (s_aRTPathAbsExTests[i].pcszOutput[0] == '%') 180 174 { 181 /** @todo Use RTPathGetCurrent(). */182 if ( getcwd(szTmp, sizeof(szTmp)) == NULL)175 rc = RTPathGetCurrent(szTmp, sizeof(szTmp)); 176 if (RT_FAILURE(rc)) 183 177 { 184 RTPrintf("tstPath: getcwd failed with errno=%d!\n", errno);178 RTPrintf("tstPath: RTPathGetCurrent failed with rc=%Rrc!\n", rc); 185 179 cErrors++; 186 180 break;
Note:
See TracChangeset
for help on using the changeset viewer.