VirtualBox

Changeset 85663 in vbox for trunk


Ignore:
Timestamp:
Aug 10, 2020 1:58:32 PM (4 years ago)
Author:
vboxsync
Message:

DnD/GuestHost: Fixed testcases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/DragAndDrop/testcase/tstDnDTransferList.cpp

    r85660 r85663  
    126126
    127127    /* From URI data. */
     128#ifdef RT_OS_WINDOWS
     129    RTStrPrintf(szPathTest, sizeof(szPathTest),  "C:/Windows/");
    128130    const char szURI[] =
    129 #ifdef RT_OS_WINDOWS
    130     "file:///C:/Windows/System32/Boot/\r\n"
    131     "file:///C:/Windows/System/\r\n";
     131        "file:///C:/Windows/System32/Boot/\r\n"
     132        "file:///C:/Windows/System/\r\n";
    132133#else
    133     "file:///bin/\r\n"
    134     "file:///usr/bin/\r\n";
     134    RTStrPrintf(szPathTest, sizeof(szPathTest), "/usr/");
     135    const char szURI[] =
     136        "file:///usr/local\r\n"
     137        "file:///usr/bin/\r\n";
    135138#endif
    136139
     
    138141                                                                DNDTRANSFERLIST_FLAGS_NONE), VINF_SUCCESS);
    139142    RTTEST_CHECK(hTest, DnDTransferListGetRootCount(&list) == 2);
    140     RTTEST_CHECK(hTest, RTPathCompare(DnDTransferListGetRootPathAbs(&list), "C:/Windows/") == 0);
     143    RTTEST_CHECK(hTest, RTPathCompare(DnDTransferListGetRootPathAbs(&list), szPathTest) == 0);
    141144    RTTEST_CHECK_RC(hTest, DnDTransferListGetRootsEx(&list, DNDTRANSFERLISTFMT_NATIVE, "/native/base/path", "\n", &pszBuf, &cbBuf), VINF_SUCCESS);
    142145    RTTestPrintf(hTest, RTTESTLVL_ALWAYS, "Roots (URI, new base):\n%s\n", pszBuf);
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