From da00518b3f3a8b08d521c4b72068eafa2db566cc Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 7 Apr 2015 16:03:45 +0200 Subject: path-util: fix more path_is_mount e792e890f fallout --- src/test/test-path-util.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/test/test-path-util.c') 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"; -- cgit v1.2.3-54-g00ecf