Skip to content
  • Emilio Pozuelo Monfort's avatar
    tests: Properly report skipped tests · dae8a4b9
    Emilio Pozuelo Monfort authored
    
    
    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: default avatarEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
    dae8a4b9