diff --git a/src/test/test-sleep.c b/src/test/test-sleep.c index 5aebcdd9..85576f29 100644 --- a/src/test/test-sleep.c +++ b/src/test/test-sleep.c @@ -53,7 +53,7 @@ static int test_fiemap_one(const char *path) { if (fd < 0) return log_error_errno(errno, "failed to open %s: %m", path); r = read_fiemap(fd, &fiemap); - if (r == -EOPNOTSUPP) + if (IN_SET(r, -EOPNOTSUPP, -ENOTTY)) exit(log_tests_skipped("Not supported")); if (r < 0) return log_error_errno(r, "Unable to read extent map for '%s': %m", path);