diff options
author | QC <qball@gmpclient.org> | 2015-07-28 22:14:21 +0200 |
---|---|---|
committer | QC <qball@gmpclient.org> | 2015-07-28 22:14:21 +0200 |
commit | b3a77589eb4210058e7ecda66eb8d6996d5bdf9c (patch) | |
tree | cc6d649c90886daaab92bbbdbd944f589fe9ab1a /test/helper-test.c | |
parent | 0adc78387e1a7bf4837c54af698d8dc8a220fc0d (diff) |
Fix makefile indent
Diffstat (limited to 'test/helper-test.c')
-rw-r--r-- | test/helper-test.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/test/helper-test.c b/test/helper-test.c index bbebd7b7..15bd2def 100644 --- a/test/helper-test.c +++ b/test/helper-test.c @@ -6,26 +6,26 @@ static int test = 0; -#define TASSERT(a) {\ - assert ( a );\ - printf("Test %i passed (%s)\n", ++test, #a);\ +#define TASSERT( a ) { \ + assert ( a ); \ + printf ( "Test %i passed (%s)\n", ++test, # a ); \ } int main ( int argc, char ** argv ) { - cmd_set_arguments(argc, argv); - 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); + cmd_set_arguments ( argc, argv ); + 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 ); + 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); + g_strfreev ( list ); } |