From 189435d25fe03148d4a701e2cd79a931bf26796c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 18 Dec 2020 17:00:40 +0100 Subject: Windows: Add test cases for lilv_path_is_absolute() --- test/test_filesystem.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') diff --git a/test/test_filesystem.c b/test/test_filesystem.c index 01ca5ae..4faaf15 100644 --- a/test/test_filesystem.c +++ b/test/test_filesystem.c @@ -55,6 +55,13 @@ test_path_is_absolute(void) assert(!lilv_path_is_absolute("a/b")); assert(!lilv_path_is_absolute("a")); assert(!lilv_path_is_absolute(".")); + +#ifdef _WIN32 + assert(lilv_path_is_absolute("C:/a/b")); + assert(lilv_path_is_absolute("C:\\a\\b")); + assert(lilv_path_is_absolute("D:/a/b")); + assert(lilv_path_is_absolute("D:\\a\\b")); +#endif } static void -- cgit v1.2.1