aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/fcntl/output.txt4
-rw-r--r--tests/fcntl/src.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/fcntl/output.txt b/tests/fcntl/output.txt
index 17f662d0..1ed740e7 100644
--- a/tests/fcntl/output.txt
+++ b/tests/fcntl/output.txt
@@ -13,13 +13,13 @@ errno: 0
F_SETFD: 0
errno: 0
-F_GETFL: 0
+F_GETFL: 1
errno: 0
F_SETFL: 0
errno: 0
-F_GETFL/2: 0x8
+F_GETFL/2: 1
errno: 0
F_GETLK: 0
diff --git a/tests/fcntl/src.c b/tests/fcntl/src.c
index 94d6f3c2..5b40ec79 100644
--- a/tests/fcntl/src.c
+++ b/tests/fcntl/src.c
@@ -30,7 +30,7 @@ int main() {
printf("\n");
errno = 0;
- printf("F_GETFL: %d\n", fcntl(f, F_GETFL)); // XXX is the result in output correct?
+ printf("F_GETFL: %d\n", fcntl(f, F_GETFL) == O_RDWR);
printf("errno: %d\n", errno);
printf("\n");
errno = 0;
@@ -40,7 +40,7 @@ int main() {
printf("\n");
errno = 0;
- printf("F_GETFL/2: %#x\n", fcntl(f, F_GETFL)); // XXX is the result in output correct?
+ printf("F_GETFL/2: %d\n", fcntl(f, F_GETFL) == (O_RDWR | O_APPEND));
printf("errno: %d\n", errno);
printf("\n");
errno = 0;