tests: Properly report skipped tests
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Fri, 7 Feb 2014 08:34:48 +0000 (09:34 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 18 Feb 2014 21:50:29 +0000 (13:50 -0800)
commitdae8a4b9c5c7fd94646527095a9f83a5f936eaa4
treeaeaccfff8b748cb67620b5d0dab16ca5fb7bb905
parent943cb120754ab1720410d8dfa35560e570a5944e
tests: Properly report skipped tests

We were calling exit(0) when tests were skipped, which counted
them as passed instead of skipped. Fix this by properly exiting
with 77 (which is what automake expects for skipped tests) from
the tests themselves, then returning 77 again from weston-test-runner
if all the tests were skipped. Finally the weston-test.so module
catches weston-test-runner's exit code and uses it as an exit code,
which is what automake will see and use.

Signed-off-by: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
tests/weston-test-client-helper.c
tests/weston-test-runner.c
tests/weston-test.c