~danieljabailey/inkscape/arc_node_editor

« back to all changes in this revision

Viewing changes to src/dir-util-test.h

  • Committer: apenner
  • Date: 2015-02-01 16:46:39 UTC
  • Revision ID: penner@vaxxine.com-20150201164639-vqt3ghs5tumtwe0l
patch by Mark Harmer to allow DirUtil test to pass in Windows. (Bug 1409208)

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
    void testBase()
13
13
    {
14
14
        char const* cases[][3] = {
 
15
#if defined(WIN32) || defined(__WIN32__)
 
16
            {"\\foo\\bar", "\\foo", "bar"},
 
17
            {"\\foo\\barney", "\\foo\\bar", "\\foo\\barney"},
 
18
            {"\\foo\\bar\\baz", "\\foo\\", "bar\\baz"},
 
19
            {"\\foo\\bar\\baz", "\\", "foo\\bar\\baz"},
 
20
            {"\\foo\\bar\\baz", "\\foo\\qux", "\\foo\\bar\\baz"},
 
21
#else
15
22
            {"/foo/bar", "/foo", "bar"},
16
23
            {"/foo/barney", "/foo/bar", "/foo/barney"},
17
24
            {"/foo/bar/baz", "/foo/", "bar/baz"},
18
25
            {"/foo/bar/baz", "/", "foo/bar/baz"},
19
26
            {"/foo/bar/baz", "/foo/qux", "/foo/bar/baz"},
 
27
#endif
20
28
        };
21
29
 
22
30
        for ( size_t i = 0; i < G_N_ELEMENTS(cases); i++ )