tests/libqtest: Allow setting expected exit status
commitd43e59e7ab883249c25cca513837407461216900
authorYury Kotov <yury-kotov@yandex-team.ru>
Tue, 3 Sep 2019 16:22:45 +0000 (3 19:22 +0300)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 12 Sep 2019 10:19:48 +0000 (12 11:19 +0100)
tree6146435662eab4325cd5a3ebced3a90307b8c08d
parentb9d68df62a1340529f7eef251353d2040c66f403
tests/libqtest: Allow setting expected exit status

Add qtest_set_expected_status function to set expected exit status of
child process. By default expected exit status is 0.

Signed-off-by: Yury Kotov <yury-kotov@yandex-team.ru>
Message-Id: <20190903162246.18524-3-yury-kotov@yandex-team.ru>
Acked-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
tests/libqtest.c
tests/libqtest.h