From 2f0726c08f4726c5468d41bee79a660727dcfc99 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 31 May 2018 12:06:54 +0200 Subject: [PATCH] coccinelle says we should use EOPNOTSUPP rather than ENOTSUP --- src/test/test-sleep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/test-sleep.c b/src/test/test-sleep.c index 1c5b56f4a0..4717423254 100644 --- a/src/test/test-sleep.c +++ b/src/test/test-sleep.c @@ -30,7 +30,7 @@ static int test_fiemap(const char *path) { if (fd < 0) return log_error_errno(errno, "failed to open %s: %m", path); r = read_fiemap(fd, &fiemap); - if (r == -ENOTSUP) { + if (r == -EOPNOTSUPP) { log_info("Skipping test, not supported"); exit(EXIT_TEST_SKIP); }