mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 05:35:47 +01:00
Use g_mkdir_with_parents instead of sys::create_directories
git-svn-id: svn://localhost/ardour2/branches/3.0@12891 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
e234dd5e33
commit
0d785c8ebd
2 changed files with 15 additions and 10 deletions
|
|
@ -12,7 +12,7 @@ void
|
|||
FilesystemTest::testPathIsWithin ()
|
||||
{
|
||||
system ("rm -r foo");
|
||||
PBD::sys::create_directories ("foo/bar/baz");
|
||||
CPPUNIT_ASSERT (g_mkdir_with_parents ("foo/bar/baz", 0755) == 0);
|
||||
|
||||
CPPUNIT_ASSERT (PBD::path_is_within ("foo/bar/baz", "foo/bar/baz"));
|
||||
CPPUNIT_ASSERT (PBD::path_is_within ("foo/bar", "foo/bar/baz"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue