test/empty-eownerdead: Only expect EOWNERDEAD as test success
The code was exiting with success on unexpected success from the
function, and returning failure when the expected EOWNERDEAD was
getting returned. Remove spurious "child" from error message.
@@ -32,11 +32,14 @@ int main(int argc, char *argv[])
if (ret < 0) {
int __e = errno;
- fprintf(stderr, "child: sqe submit failed: %s\n", strerror(__e));
- goto err;
+ if (errno == EOWNERDEAD)
+ return 0;
+
+ fprintf(stderr, "sqe submit failed: %s\n", strerror(__e));
+ } else {
+ fprintf(stderr, "sqe submit unexpected success, expecting EOWNERDEAD\n");
}
- return 0;
err:
return 1;
}
