summaryrefslogtreecommitdiff
path: root/io/tst-unlinkat.c
diff options
context:
space:
mode:
Diffstat (limited to 'io/tst-unlinkat.c')
-rw-r--r--io/tst-unlinkat.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/io/tst-unlinkat.c b/io/tst-unlinkat.c
index c25443c27f..342e7d51c3 100644
--- a/io/tst-unlinkat.c
+++ b/io/tst-unlinkat.c
@@ -140,6 +140,11 @@ do_test (void)
/* Remove the file now. */
if (unlinkat (dir_fd, "some-file", 0) != 0)
{
+ if (errno == ENOSYS)
+ {
+ puts ("unlinkat function not supported");
+ return 0;
+ }
puts ("unlinkat failed");
return 1;
}