summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dir-util-test.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dir-util-test.h b/src/dir-util-test.h
index cc3bc20b8..735f0174e 100644
--- a/src/dir-util-test.h
+++ b/src/dir-util-test.h
@@ -12,11 +12,19 @@ public:
void testBase()
{
char const* cases[][3] = {
+#if defined(WIN32) || defined(__WIN32__)
+ {"\\foo\\bar", "\\foo", "bar"},
+ {"\\foo\\barney", "\\foo\\bar", "\\foo\\barney"},
+ {"\\foo\\bar\\baz", "\\foo\\", "bar\\baz"},
+ {"\\foo\\bar\\baz", "\\", "foo\\bar\\baz"},
+ {"\\foo\\bar\\baz", "\\foo\\qux", "\\foo\\bar\\baz"},
+#else
{"/foo/bar", "/foo", "bar"},
{"/foo/barney", "/foo/bar", "/foo/barney"},
{"/foo/bar/baz", "/foo/", "bar/baz"},
{"/foo/bar/baz", "/", "foo/bar/baz"},
{"/foo/bar/baz", "/foo/qux", "/foo/bar/baz"},
+#endif
};
for ( size_t i = 0; i < G_N_ELEMENTS(cases); i++ )