Skip to content

Commit

Permalink
add cool framework for printing ok/nok
Browse files Browse the repository at this point in the history
  • Loading branch information
anttikantee committed Jun 23, 2015
1 parent 7e9e3af commit 83e9e02
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/basic/misc_test.c
Expand Up @@ -4,6 +4,16 @@

#include <rumprun/tester.h>

static void
prfres(int res)
{

if (res)
printf("NOK\n");
else
printf("OK!\n");
}

/*
* calling times() causes crash. rumprun issue #4
*/
Expand All @@ -14,7 +24,7 @@ test_times(void)

printf("checking that calling times() does not crash ... ");
times(&tms);
printf("OK!\n");
prfres(0);

return 0;
}
Expand Down

0 comments on commit 83e9e02

Please sign in to comment.