VirtualBox

Changeset 4029 in vbox for trunk/src/VBox/Runtime/testcase


Ignore:
Timestamp:
Aug 3, 2007 10:00:58 PM (17 years ago)
Author:
vboxsync
Message:

Added missing checks and a fallback path for RTPathUserHome.

File:
1 edited

Legend:

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

    r3672 r4029  
    5252
    5353    /*
    54      * RTPathProgram
     54     * RTPathProgram, RTPathUserHome
    5555     */
    5656    char szPath[RTPATH_MAX];
    5757    CHECK_RC(RTPathProgram(szPath, sizeof(szPath)));
    58 
     58    if (RT_SUCCESS(rc))
     59        RTPrintf("Program={%s}\n", szPath);
     60    CHECK_RC(RTPathUserHome(szPath, sizeof(szPath)));
     61    if (RT_SUCCESS(rc))
     62        RTPrintf("UserHome={%s}\n", szPath);
     63   
    5964    /*
    6065     * RTPathAbsEx
Note: See TracChangeset for help on using the changeset viewer.

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