mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-31 22:25:25 -04:00
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.
This commit is contained in:
parent
62d2569954
commit
e655059256
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,6 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
pass = 0;
|
pass = 0;
|
||||||
for (t = &__start_test_section; t < &__stop_test_section; t++) {
|
for (t = &__start_test_section; t < &__stop_test_section; t++) {
|
||||||
fprintf(stderr, "running \"%s\"... ", t->name);
|
|
||||||
pid = fork();
|
pid = fork();
|
||||||
assert(pid >= 0);
|
assert(pid >= 0);
|
||||||
if (pid == 0) {
|
if (pid == 0) {
|
||||||
|
|
@ -71,6 +70,7 @@ int main(int argc, char *argv[])
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fprintf(stderr, "test \"%s\"... ", t->name);
|
||||||
switch (info.si_code) {
|
switch (info.si_code) {
|
||||||
case CLD_EXITED:
|
case CLD_EXITED:
|
||||||
fprintf(stderr, "exit status %d\n", info.si_status);
|
fprintf(stderr, "exit status %d\n", info.si_status);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue