@@ -230,7 +230,9 @@ int main(int argc, char *argv[])
ret = test_fallocate(&ring);
if (ret) {
- fprintf(stderr, "test_fallocate failed\n");
+ if (ret != T_EXIT_SKIP) {
+ fprintf(stderr, "test_fallocate failed\n");
+ }
return ret;
}
@@ -242,7 +244,9 @@ int main(int argc, char *argv[])
ret = test_fallocate_rlimit(&ring);
if (ret) {
- fprintf(stderr, "test_fallocate_rlimit failed\n");
+ if (ret != T_EXIT_SKIP) {
+ fprintf(stderr, "test_fallocate_rlimit failed\n");
+ }
return ret;
}
@@ -165,7 +165,9 @@ int main(int argc, char *argv[])
ret = test_sqe_update(&r1);
if (ret) {
- fprintf(stderr, "test_sqe_update failed\n");
+ if (ret != T_EXIT_SKIP) {
+ fprintf(stderr, "test_sqe_update failed\n");
+ }
return ret;
}
We are going to update these functions to distinguish between pass/skip, so ret might be nonzero but have handled its own non-error message. Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> --- test/fallocate.c | 8 ++++++-- test/file-update.c | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-)