test/empty-eownerdead: Clarify unexpected error message
Old kernels incorrectly return EOWNERDEAD, catch that explicitly and
print a more clear error message to avoid unsuspecting users think
the test might be buggy, when it is the kernel.
Reword fallback error message too to make it clear these are unexpected
too.
@@ -32,7 +32,10 @@ int main(int argc, char *argv[])
if (ret < 0) {
int __e = errno;
- fprintf(stderr, "child: sqe submit failed: %s\n", strerror(__e));
+ if (__e == EOWNERDEAD)
+ fprintf(stderr, "sqe submit unexpected failure due old kernel bug: %s\n", strerror(__e));
+ else
+ fprintf(stderr, "sqe submit unexpected failure: %s\n", strerror(__e));
goto err;
}
