diff options
| author | Kristian Høgsberg <krh@bitplanet.net> | 2012-03-02 22:45:28 -0500 |
|---|---|---|
| committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-03-02 22:45:28 -0500 |
| commit | e655059256e70452683d43bbec62e73bc480ff31 (patch) | |
| tree | fd2d78c7446bcda7f4e6e89425433adf886fd321 | |
| parent | tests: Add Unit tests for wl_map and wl_array data structures (diff) | |
| download | wayland-e655059256e70452683d43bbec62e73bc480ff31.tar wayland-e655059256e70452683d43bbec62e73bc480ff31.tar.gz wayland-e655059256e70452683d43bbec62e73bc480ff31.tar.bz2 wayland-e655059256e70452683d43bbec62e73bc480ff31.tar.lz wayland-e655059256e70452683d43bbec62e73bc480ff31.tar.xz wayland-e655059256e70452683d43bbec62e73bc480ff31.tar.zst wayland-e655059256e70452683d43bbec62e73bc480ff31.zip | |
tests: Print test status after running test
This way assert output will be a line by itself, which is easier to read
and lets editors such as emacs step through failed assertions.
| -rw-r--r-- | tests/test-runner.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-runner.c b/tests/test-runner.c index 80be2f7..a47ea70 100644 --- a/tests/test-runner.c +++ b/tests/test-runner.c @@ -59,7 +59,6 @@ int main(int argc, char *argv[]) pass = 0; for (t = &__start_test_section; t < &__stop_test_section; t++) { - fprintf(stderr, "running \"%s\"... ", t->name); pid = fork(); assert(pid >= 0); if (pid == 0) { @@ -71,6 +70,7 @@ int main(int argc, char *argv[]) abort(); } + fprintf(stderr, "test \"%s\"... ", t->name); switch (info.si_code) { case CLD_EXITED: fprintf(stderr, "exit status %d\n", info.si_status); |
