diff options
Diffstat (limited to 'tests/sanity-test.c')
| -rw-r--r-- | tests/sanity-test.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/sanity-test.c b/tests/sanity-test.c index f2abe42..389ee4c 100644 --- a/tests/sanity-test.c +++ b/tests/sanity-test.c @@ -85,3 +85,11 @@ FAIL_TEST(sanity_malloc_indirect) /* not freeing array, must leak */ } + +FAIL_TEST(sanity_fd_leak) +{ + int fd[2]; + + /* leak 2 file descriptors */ + pipe(fd); +} |
