diff options
author | Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp> | 2014-04-19 22:15:20 +0900 |
---|---|---|
committer | Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp> | 2014-04-19 22:15:20 +0900 |
commit | 2991da5687fa2828d551fd7b2388d9648a19ecc2 (patch) | |
tree | 56aff659352fa256c7a8f78c21835e213978d0c9 /tests/weston-test.c | |
parent | ef9195febc0e67a116b2f1d093cbcbeb629c92b4 (diff) | |
download | weston-2991da5687fa2828d551fd7b2388d9648a19ecc2.tar.gz |
1.4.91
Change-Id: Ibfed4937c6083937d2b29154e0485c1caf8365a1
Diffstat (limited to 'tests/weston-test.c')
-rw-r--r-- | tests/weston-test.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/weston-test.c b/tests/weston-test.c index 844059dc..35ccaa40 100644 --- a/tests/weston-test.c +++ b/tests/weston-test.c @@ -54,6 +54,12 @@ test_client_sigchld(struct weston_process *process, int status) struct weston_test *test = container_of(process, struct weston_test, process); + /* Chain up from weston-test-runner's exit code so that automake + * knows the exit status and can report e.g. skipped tests. */ + if (WIFEXITED(status) && WEXITSTATUS(status) != 0) + exit(WEXITSTATUS(status)); + + /* In case the child aborted or segfaulted... */ assert(status == 0); wl_display_terminate(test->compositor->wl_display); |