]> granicus.if.org Git - strace/commitdiff
tests: skip statfs related tests if their sample files are not available
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 18 Apr 2017 23:56:09 +0000 (23:56 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 18 Apr 2017 23:56:09 +0000 (23:56 +0000)
* tests/xstatfsx.c (print_statfs): Skip the test if open failed.

tests/xstatfsx.c

index 94af08461b258ec0bc18bd1b145863760bbf9af0..4b4c0c8ce29c4b2addb6ddc51ecc66e6d6e94d0e 100644 (file)
@@ -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));