diff --git a/tests/expected/fcntl/fcntl.stdout b/tests/expected/fcntl/fcntl.stdout index 20ec3fc2838660ac3a4dcb4428bd025b248e4fc5..4fb8e07602d5102ca0ef3ac1633d814a5b7883c6 100644 --- a/tests/expected/fcntl/fcntl.stdout +++ b/tests/expected/fcntl/fcntl.stdout @@ -1 +1 @@ -fd 4 duped into fd 5 +duped fd is 1 greater than the original fd diff --git a/tests/expected/unistd/dup.stdout b/tests/expected/unistd/dup.stdout index 20ec3fc2838660ac3a4dcb4428bd025b248e4fc5..4fb8e07602d5102ca0ef3ac1633d814a5b7883c6 100644 --- a/tests/expected/unistd/dup.stdout +++ b/tests/expected/unistd/dup.stdout @@ -1 +1 @@ -fd 4 duped into fd 5 +duped fd is 1 greater than the original fd diff --git a/tests/fcntl/fcntl.c b/tests/fcntl/fcntl.c index df8442b8e654cb038499e54df68fba6354c5cf87..66c6bd3bd7e9c7a586ffc843d8a2a9480990f051 100644 --- a/tests/fcntl/fcntl.c +++ b/tests/fcntl/fcntl.c @@ -19,7 +19,7 @@ int main(void) { int newfd2 = fcntl(newfd, F_DUPFD, 0); // TODO: The standard doesn't define errors for F_DUPFD - printf("fd %d duped into fd %d\n", newfd, newfd2); + printf("duped fd is %d greater than the original fd\n", newfd2 - newfd); int c1 = close(newfd); ERROR_IF(close, c1, == -1); diff --git a/tests/unistd/dup.c b/tests/unistd/dup.c index ca879d6ed63e16328a256a4d28671ec23fbdfebd..af1fb1f1407b675853b0b2b918833a2762697601 100644 --- a/tests/unistd/dup.c +++ b/tests/unistd/dup.c @@ -17,7 +17,7 @@ int main(void) { ERROR_IF(dup, fd2, == -1); UNEXP_IF(dup, fd2, < 0); - printf("fd %d duped into fd %d\n", fd1, fd2); + printf("duped fd is %d greater than the original fd\n", fd2 - fd1); int c1 = close(fd1); ERROR_IF(close, c1, == -1);