summaryrefslogtreecommitdiff
path: root/src/test/test-data-fd-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test-data-fd-util.c')
-rw-r--r--src/test/test-data-fd-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-data-fd-util.c b/src/test/test-data-fd-util.c
index d466ba9315..d69648842e 100644
--- a/src/test/test-data-fd-util.c
+++ b/src/test/test-data-fd-util.c
@@ -81,7 +81,7 @@ static void assert_equal_fd(int fd1, int fd2) {
TEST(copy_data_fd) {
_cleanup_close_ int fd1 = -EBADF, fd2 = -EBADF;
- _cleanup_(close_pairp) int sfd[2] = { -1, -1 };
+ _cleanup_(close_pairp) int sfd[2] = { -EBADF, -EBADF };
_cleanup_(sigkill_waitp) pid_t pid = -1;
int r;