diff options
Diffstat (limited to 'test/helper-test.c')
-rw-r--r-- | test/helper-test.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/test/helper-test.c b/test/helper-test.c index 2339147b..00de4d19 100644 --- a/test/helper-test.c +++ b/test/helper-test.c @@ -66,30 +66,6 @@ int main ( int argc, char ** argv ) g_strfreev ( list ); /** - * Test some path functions. Not easy as not sure what is right output on travis. - */ - // Test if root is preserved. - char *str = rofi_expand_path ( "/" ); - TASSERT ( strcmp ( str, "/" ) == 0 ); - g_free ( str ); - // Test is relative path is preserved. - str = rofi_expand_path ( "../AUTHORS" ); - TASSERT ( strcmp ( str, "../AUTHORS" ) == 0 ); - g_free ( str ); - // Test another one. - str = rofi_expand_path ( "/bin/false" ); - TASSERT ( strcmp ( str, "/bin/false" ) == 0 ); - g_free ( str ); - // See if user paths get expanded in full path. - str = rofi_expand_path ( "~/" ); - const char *hd = g_get_home_dir (); - TASSERT ( strcmp ( str, hd ) == 0 ); - g_free ( str ); - str = rofi_expand_path ( "~root/" ); - TASSERT ( str[0] == '/' ); - g_free ( str ); - - /** * Collating. */ char *res = token_collate_key ( "€ Sign", FALSE ); |