Skip to content
Snippets Groups Projects
Commit fef29314 authored by hcasse's avatar hcasse
Browse files

system: bug fixed in Path class.

parent eba63c68
No related branches found
No related tags found
No related merge requests found
......@@ -112,6 +112,9 @@ Path Path::relativeTo(Path base) const {
r = r / BACK_PATH;
base = base.parent();
}
if(base == *this)
return r;
else
return r / toString().substring(base.toString().length() + 1);
}
......
......@@ -29,7 +29,7 @@ target_link_libraries(myplugin elm)
message(STATUS ${CMAKE_CURRENT_SOURCE_DIR})
set(TEST_SOURCES
"test.cc"
"test.cpp"
"test_alloc.cpp"
"test_ansi.cpp"
"test_array.cpp"
......
File moved
......@@ -91,10 +91,11 @@ TEST_BEGIN(path)
}
// read the directory content
# if 0
{
sys::Path p = ".";
for(auto c: p.readDir())
cerr << "DEBUG: " << c << io::endl;
}
# endif
TEST_END
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment