VirtualBox

Ignore:
Timestamp:
Jan 5, 2009 3:44:53 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
41386
Message:

iprt: added RTPathGetCurrent.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstPath.cpp

    r15806 r15808  
    4040#include <iprt/param.h>
    4141
    42 #if defined (RT_OS_WINDOWS)
    43 # include <direct.h> // for getcwd
    44 #else
    45 # include <unistd.h> // for getcwd
    46 #endif
    47 #include <errno.h> // for getcwd
    4842
    4943#define CHECK_RC(method) \
     
    179173            if (s_aRTPathAbsExTests[i].pcszOutput[0] == '%')
    180174            {
    181                 /** @todo Use RTPathGetCurrent(). */
    182                 if (getcwd(szTmp, sizeof(szTmp)) == NULL)
     175                rc = RTPathGetCurrent(szTmp, sizeof(szTmp));
     176                if (RT_FAILURE(rc))
    183177                {
    184                     RTPrintf("tstPath: getcwd failed with errno=%d!\n", errno);
     178                    RTPrintf("tstPath: RTPathGetCurrent failed with rc=%Rrc!\n", rc);
    185179                    cErrors++;
    186180                    break;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette