diff options
author | Colin Walters <walters@verbum.org> | 2014-12-17 22:28:58 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2014-12-17 22:28:58 -0500 |
commit | ad3a28c5f2520d0688730aa83eaee815fb9a5762 (patch) | |
tree | 59011cfaa9b9f580cc824c856e1d7bfe01adc57b /tests | |
parent | f5a904e3cc16b2bd459fcbb88bc070ad238c8af3 (diff) | |
download | libgsystem-ad3a28c5f2520d0688730aa83eaee815fb9a5762.tar.gz |
localalloc: Add gs_fd_close cleanup
Now that we're encouraging use of openat(), fds are a lot more
prevalent.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/localalloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/localalloc.c b/tests/localalloc.c index 46024c3..087261a 100644 --- a/tests/localalloc.c +++ b/tests/localalloc.c @@ -25,6 +25,8 @@ test_localalloc (void) gs_strfreev char **strv = g_get_environ (); gs_free_error GError *err = g_error_new (G_IO_ERROR, G_IO_ERROR_FAILED, "oops %s", "darn!"); gs_unref_keyfile GKeyFile *keyfile = g_key_file_new (); + gs_fd_close int fd = open ("/dev/null", O_RDONLY); + gs_fd_close int fd2 = -1; } int |