Skip to content

Commit 1d44d0d

Browse files
rantalashuahkh
authored andcommitted
selftests: core: use SKIP instead of XFAIL in close_range_test.c
XFAIL is gone since commit 9847d24 ("selftests/harness: Refactor XFAIL into SKIP"), use SKIP instead. Fixes: 9847d24 ("selftests/harness: Refactor XFAIL into SKIP") Signed-off-by: Tommi Rantala <tommi.t.rantala@nokia.com> Reviewed-by: Kees Cook <keescook@chromium.org> Acked-by: Christian Brauner <christian.brauner@ubuntu.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent f3ae6c6 commit 1d44d0d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tools/testing/selftests/core/close_range_test.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ TEST(close_range)
4444
fd = open("/dev/null", O_RDONLY | O_CLOEXEC);
4545
ASSERT_GE(fd, 0) {
4646
if (errno == ENOENT)
47-
XFAIL(return, "Skipping test since /dev/null does not exist");
47+
SKIP(return, "Skipping test since /dev/null does not exist");
4848
}
4949

5050
open_fds[i] = fd;
5151
}
5252

5353
EXPECT_EQ(-1, sys_close_range(open_fds[0], open_fds[100], -1)) {
5454
if (errno == ENOSYS)
55-
XFAIL(return, "close_range() syscall not supported");
55+
SKIP(return, "close_range() syscall not supported");
5656
}
5757

5858
EXPECT_EQ(0, sys_close_range(open_fds[0], open_fds[50], 0));
@@ -108,7 +108,7 @@ TEST(close_range_unshare)
108108
fd = open("/dev/null", O_RDONLY | O_CLOEXEC);
109109
ASSERT_GE(fd, 0) {
110110
if (errno == ENOENT)
111-
XFAIL(return, "Skipping test since /dev/null does not exist");
111+
SKIP(return, "Skipping test since /dev/null does not exist");
112112
}
113113

114114
open_fds[i] = fd;
@@ -197,7 +197,7 @@ TEST(close_range_unshare_capped)
197197
fd = open("/dev/null", O_RDONLY | O_CLOEXEC);
198198
ASSERT_GE(fd, 0) {
199199
if (errno == ENOENT)
200-
XFAIL(return, "Skipping test since /dev/null does not exist");
200+
SKIP(return, "Skipping test since /dev/null does not exist");
201201
}
202202

203203
open_fds[i] = fd;

0 commit comments

Comments
 (0)