VirtualBox

Changeset 10913 in vbox


Ignore:
Timestamp:
Jul 28, 2008 1:00:32 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33746
Message:

tstRunTestcases: Change directory when taking the default route.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/testcase/tstRunTestcases.cpp

    r10912 r10913  
    257257    if (argc == 1)
    258258    {
     259        char szPath[RTPATH_MAX];
     260        int rc = RTPathProgram(szPath, sizeof(szPath) - sizeof("/.."));
     261        if (RT_FAILURE(rc))
     262        {
     263            RTPrintf("fatal error: RTPathProgram -> %Rrc\n", rc);
     264            return 1;
     265        }
     266        rc = RTPathSetCurrent(strcat(szPath, "/.."));
     267        if (RT_FAILURE(rc))
     268        {
     269            RTPrintf("fatal error: RTPathSetCurrent -> %Rrc\n", rc);
     270            return 1;
     271        }
     272
    259273        Process("testcase/tst*", "testcase");
    260274        Process("tst*", ".");
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