VirtualBox

Ignore:
Timestamp:
May 10, 2016 2:06:00 PM (9 years ago)
Author:
vboxsync
Message:

tstRTSymlink: Skip if not supported (w2k3).

File:
1 edited

Legend:

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

    r57838 r60926  
    6767    RTTESTI_CHECK_RC_OK_RETV(RTPathJoin(szPath1, sizeof(szPath1), pszBaseDir, "tstRTSymlink-link-1"));
    6868    RTSymlinkDelete(szPath1, 0); /* clean up previous run */
    69     RTTESTI_CHECK_RC_RETV(RTSymlinkCreate(szPath1, pszTarget, RTSYMLINKTYPE_FILE, 0), VINF_SUCCESS);
     69    int rc = RTSymlinkCreate(szPath1, pszTarget, RTSYMLINKTYPE_FILE, 0);
     70    if (rc == VERR_NOT_SUPPORTED)
     71    {
     72        RTTestPrintf(hTest, RTTESTLVL_ALWAYS, "VERR_NOT_SUPPORTED - skipping\n");
     73        return;
     74    }
     75    RTTESTI_CHECK_RC_RETV(rc, VINF_SUCCESS);
    7076
    7177    /* Check the predicate functions. */
     
    9298
    9399    /* Other APIs that have to handle symlinks carefully. */
    94     int rc;
    95100    RTFSOBJINFO ObjInfo;
    96101    RTTESTI_CHECK_RC(rc = RTPathQueryInfo(szPath1, &ObjInfo, RTFSOBJATTRADD_NOTHING), VINF_SUCCESS);
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