diff options
author | Fabio M. Di Nitto <fdinitto@redhat.com> | 2011-04-19 15:02:33 -0400 |
---|---|---|
committer | Jeff Moyer <jmoyer@redhat.com> | 2011-04-19 15:02:33 -0400 |
commit | 531f075f251a16ef712e4f8da2fcd13794369b3b (patch) | |
tree | 8346a12b6bbade892c59c38578158d524069f608 | |
parent | 7fab3fecaa1e570eef7c7c85b584b8babcc4a51d (diff) | |
download | libaio-531f075f251a16ef712e4f8da2fcd13794369b3b.tar.gz |
fix the testsuite build
-Werror tripped up on unchecked return codes in fedora.
Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
-rw-r--r-- | harness/cases/12.t | 4 | ||||
-rw-r--r-- | harness/cases/14.t | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/harness/cases/12.t b/harness/cases/12.t index e87d1dc..6786bbe 100644 --- a/harness/cases/12.t +++ b/harness/cases/12.t @@ -36,6 +36,10 @@ int test_main(void) test_child(); res = waitpid(pid, &status, 0); + if (res < 0) { + printf("waitpid error\n"); + return res; + } if (WIFEXITED(status)) { int failed = (WEXITSTATUS(status) != 0); diff --git a/harness/cases/14.t b/harness/cases/14.t index 87773e3..19d98c9 100644 --- a/harness/cases/14.t +++ b/harness/cases/14.t @@ -76,6 +76,10 @@ int test_main(void) test_child(); res = waitpid(pid, &status, 0); + if (res < 0) { + printf("waitpid error\n"); + return res; + } if (WIFEXITED(status)) { int failed = (WEXITSTATUS(status) != 0); |