summaryrefslogtreecommitdiff
path: root/src/test/test-path-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-04-07 16:03:45 +0200
committerLennart Poettering <lennart@poettering.net>2015-04-07 16:03:45 +0200
commitda00518b3f3a8b08d521c4b72068eafa2db566cc (patch)
treecbfbc00d68a4cc59474a382510e8d5008c2ab594 /src/test/test-path-util.c
parent2c0223282d804ec796c3dc7e0d9087717314ec6a (diff)
path-util: fix more path_is_mount e792e890f fallout
Diffstat (limited to 'src/test/test-path-util.c')
-rw-r--r--src/test/test-path-util.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/test/test-path-util.c b/src/test/test-path-util.c
index 759515e564..55d75ae7a1 100644
--- a/src/test/test-path-util.c
+++ b/src/test/test-path-util.c
@@ -86,8 +86,14 @@ static void test_path(void) {
test_parent("/aa///file...", "/aa///");
test_parent("file.../", NULL);
- assert_se(path_is_mount_point("/", true));
- assert_se(path_is_mount_point("/", false));
+ assert_se(path_is_mount_point("/", true) > 0);
+ assert_se(path_is_mount_point("/", false) > 0);
+
+ assert_se(path_is_mount_point("/proc", true) > 0);
+ assert_se(path_is_mount_point("/proc", false) > 0);
+
+ assert_se(path_is_mount_point("/sys", true) > 0);
+ assert_se(path_is_mount_point("/sys", false) > 0);
{
char p1[] = "aaa/bbb////ccc";