switch (c)
{
case 'l':
- printf(" List of test cases:\n");
+ printf("\n"
+ " List of test cases \n"
+ "------------------------------\n");
list_tests = 1;
return;
{
if (list_tests)
{
- printf("%-12s - %s\n", test_id, dsc);
+ printf("%28s : %s\n", test_id, dsc);
return;
}
bt_test_id = test_id;
- bt_note("Starting");
+ bt_note("Starting %s: %s", test_id, dsc);
if (!forked)
{
bt_log("Core dumped");
}
- if (result)
+ if (result != BT_SUCCESS)
{
bt_log("Test case failed");
exit(result);
}
- bt_note("Test case OK");
+ bt_note("OK");
}