diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-03-22 10:43:42 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-03-22 10:43:42 +0100 |
commit | 66937999231994df1eb8e23932deaff7de242dbe (patch) | |
tree | 2bf6939f9d0976db938e649fd9f945f453fcee97 /test/helper-test.c | |
parent | 3ac0c6dd7d8543805356f632fd15ea4f1d7aba93 (diff) |
Split test for helper in separate test for config cmdline parser.
Diffstat (limited to 'test/helper-test.c')
-rw-r--r-- | test/helper-test.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/test/helper-test.c b/test/helper-test.c index 00de4d19..425cef06 100644 --- a/test/helper-test.c +++ b/test/helper-test.c @@ -49,21 +49,6 @@ int main ( int argc, char ** argv ) fprintf ( stderr, "Failed to set locale.\n" ); return EXIT_FAILURE; } - char **list = NULL; - int llength = 0; - char * test_str = - "{host} {terminal} -e bash -c \"{ssh-client} {host}; echo '{terminal} {host}'\""; - helper_parse_setup ( test_str, &list, &llength, "{host}", "chuck", - "{terminal}", "x-terminal-emulator", NULL ); - - TASSERT ( llength == 6 ); - TASSERT ( strcmp ( list[0], "chuck" ) == 0 ); - TASSERT ( strcmp ( list[1], "x-terminal-emulator" ) == 0 ); - TASSERT ( strcmp ( list[2], "-e" ) == 0 ); - TASSERT ( strcmp ( list[3], "bash" ) == 0 ); - TASSERT ( strcmp ( list[4], "-c" ) == 0 ); - TASSERT ( strcmp ( list[5], "ssh chuck; echo 'x-terminal-emulator chuck'" ) == 0 ); - g_strfreev ( list ); /** * Collating. |