1
0
mirror of https://github.com/ioacademy-jikim/debugging synced 2025-06-19 05:46:11 +00:00
2015-12-13 22:34:58 +09:00

26 lines
384 B
Plaintext

/* Test that repeated suites/tcases are only disallowed when they've
* actually been used in defining a test. */
# suite Foo
# tcase Bar
/* But no test... */
# suite Baz
# tcase Quux
# test quuux
const char msg[] = "Howdy doody!\n";
int nc = printf(msg);
fail_unless(nc == sizeof msg - 1);
# suite Foo
# tcase Bar
# test huh
fail_unless(ALLOWED_AFTER_ALL);