diff options
| author | Alvin Penner <penner@vaxxine.com> | 2015-02-01 16:46:39 +0000 |
|---|---|---|
| committer | apenner <penner@vaxxine.com> | 2015-02-01 16:46:39 +0000 |
| commit | 43e3001d4ce46905549d92951e86c7ceb5c9eb4c (patch) | |
| tree | a8803376e341f4c14784c6868493a4d9355f256c /src | |
| parent | Translations. Italian translation update. (diff) | |
| download | inkscape-43e3001d4ce46905549d92951e86c7ceb5c9eb4c.tar.gz inkscape-43e3001d4ce46905549d92951e86c7ceb5c9eb4c.zip | |
patch by Mark Harmer to allow DirUtil test to pass in Windows. (Bug 1409208)
Fixed bugs:
- https://launchpad.net/bugs/1409208
(bzr r13887)
Diffstat (limited to 'src')
| -rw-r--r-- | src/dir-util-test.h | 8 |
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++ ) |
