aboutsummaryrefslogtreecommitdiff
path: root/tests/fcntl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fcntl')
-rw-r--r--tests/fcntl/output.txt2
-rw-r--r--tests/fcntl/src.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/fcntl/output.txt b/tests/fcntl/output.txt
index 1ed740e7..bad9708e 100644
--- a/tests/fcntl/output.txt
+++ b/tests/fcntl/output.txt
@@ -1,4 +1,4 @@
-F_DUPFD: 100
+F_DUPFD: 1
errno: 0
F_DUPFD/error1: -1
diff --git a/tests/fcntl/src.c b/tests/fcntl/src.c
index c8c71c8a..c60e578e 100644
--- a/tests/fcntl/src.c
+++ b/tests/fcntl/src.c
@@ -5,7 +5,7 @@
int main() {
int f = open("/test", O_RDWR, 0777);
- printf("F_DUPFD: %d\n", fcntl(f, F_DUPFD, 100));
+ printf("F_DUPFD: %d\n", fcntl(f, F_DUPFD, 100) >= 100);
printf("errno: %d\n", errno);
printf("\n");
errno = 0;