summaryrefslogtreecommitdiffstats
path: root/test/helper-test.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-03-21 17:16:45 +0100
committerDave Davenport <qball@gmpclient.org>2016-03-21 17:16:45 +0100
commit8914fbf2df7c78194ce9d45d12c695d0c8314eb0 (patch)
treeb15eea60910d5bc205ca3f572f7acc76c37aa600 /test/helper-test.c
parent1e3294fa682a632cf72ff4c2f96c9c3216fc8e3e (diff)
Split test in 2.
Diffstat (limited to 'test/helper-test.c')
-rw-r--r--test/helper-test.c24
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 );