mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-12 09:36:33 +01:00
Ifdef unix specific test for mingw build
This commit is contained in:
parent
cb23bdd547
commit
5d20b3e24e
1 changed files with 2 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION (FilesystemTest);
|
||||||
void
|
void
|
||||||
FilesystemTest::testPathIsWithin ()
|
FilesystemTest::testPathIsWithin ()
|
||||||
{
|
{
|
||||||
|
#ifndef WIN32
|
||||||
system ("rm -r foo");
|
system ("rm -r foo");
|
||||||
CPPUNIT_ASSERT (g_mkdir_with_parents ("foo/bar/baz", 0755) == 0);
|
CPPUNIT_ASSERT (g_mkdir_with_parents ("foo/bar/baz", 0755) == 0);
|
||||||
|
|
||||||
|
|
@ -31,5 +32,6 @@ FilesystemTest::testPathIsWithin ()
|
||||||
CPPUNIT_ASSERT (PBD::path_is_within ("foo/bar", "foo/bar"));
|
CPPUNIT_ASSERT (PBD::path_is_within ("foo/bar", "foo/bar"));
|
||||||
|
|
||||||
CPPUNIT_ASSERT (PBD::path_is_within ("foo/jim/baz", "frobozz") == false);
|
CPPUNIT_ASSERT (PBD::path_is_within ("foo/jim/baz", "frobozz") == false);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue