VirtualBox

Changeset 49084 in vbox


Ignore:
Timestamp:
Oct 14, 2013 10:18:02 AM (11 years ago)
Author:
vboxsync
Message:

tstRTPath.cpp: RTPathStripSuffix works more sensibly now, lone dot isn't considered a suffix anymore. Fixed a bunch of windows bugs in the testcase.

File:
1 edited

Legend:

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

    r49039 r49084  
    598598        "D:\\/\\",              "D:\\",
    599599        "D:/\\/\\",             "D:/",
    600         "C:/Temp",              "D:/Temp",
    601         "C:/Temp/",             "D:/Temp/",
    602         "C:/Temp\\/",           "D:/Temp",
     600        "C:/Temp",              "C:/Temp",
     601        "C:/Temp/",             "C:/Temp",
     602        "C:/Temp\\/",           "C:/Temp",
    603603#endif
    604604    };
     
    717717        { "filename.ext1.ext2.ext3",    "filename.ext1.ext2" },
    718718        { "filename..ext",              "filename." },
    719         { "filename.ext.",              "filename.ext" }, /** @todo This is a bit weird/wrong, but not half as weird as the way Windows+OS/2 deals with a trailing dots. */
     719        { "filename.ext.",              "filename.ext." },
    720720    };
    721721    for (unsigned i = 0; i < RT_ELEMENTS(s_aStripExt); i++)
     
    748748        { "/home/test.ext", "/home/test2.ext", VINF_SUCCESS, "test2.ext"},
    749749        { "/dir/test.ext", "/dir/dir2/test2.ext", VINF_SUCCESS, "dir2/test2.ext"},
    750         { "/dir/dir2/test.ext", "/dir/test2.ext", VINF_SUCCESS, "../test2.ext"},
    751         { "/dir/dir2/test.ext", "/dir/dir3/test2.ext", VINF_SUCCESS, "../dir3/test2.ext"},
     750        { "/dir/dir2/test.ext", "/dir/test2.ext", VINF_SUCCESS, ".." RTPATH_SLASH_STR "test2.ext"},
     751        { "/dir/dir2/test.ext", "/dir/dir3/test2.ext", VINF_SUCCESS, ".." RTPATH_SLASH_STR "dir3/test2.ext"},
    752752#if defined (RT_OS_OS2) || defined (RT_OS_WINDOWS)
    753753        { "\\\\server\\share\\test.ext", "\\\\server\\share2\\test2.ext", VERR_NOT_SUPPORTED, ""},
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