From: Dmitry V. Levin Date: Tue, 18 Apr 2017 23:56:09 +0000 (+0000) Subject: tests: skip statfs related tests if their sample files are not available X-Git-Tag: v4.17~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af65eec08edd98b92f30b5cdb6f4e067bf56afd6;p=strace tests: skip statfs related tests if their sample files are not available * tests/xstatfsx.c (print_statfs): Skip the test if open failed. --- diff --git a/tests/xstatfsx.c b/tests/xstatfsx.c index 94af0846..4b4c0c8c 100644 --- a/tests/xstatfsx.c +++ b/tests/xstatfsx.c @@ -62,7 +62,7 @@ print_statfs(const char *const sample, const char *magic_str) { int fd = open(sample, O_RDONLY); if (fd < 0) - perror_msg_and_fail("open: %s", sample); + perror_msg_and_skip("open: %s", sample); TAIL_ALLOC_OBJECT_CONST_PTR(STRUCT_STATFS, b); long rc = SYSCALL_INVOKE(sample, fd, b, sizeof(*b));