diff options
author | Jeff Trawick <trawick@apache.org> | 2001-08-06 21:43:25 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2001-08-06 21:43:25 +0000 |
commit | 805a0850cb0ce84b12d1e5baed5462c97a2a66b3 (patch) | |
tree | 4423053c98ca90b57ad4cc6b0fc5fb977038decd /test/testdir.c | |
parent | ee6bae22d71cb5add1ba5b807bd88f63197c28eb (diff) | |
download | apr-805a0850cb0ce84b12d1e5baed5462c97a2a66b3.tar.gz |
gotta close the dir before it can be removed (at least on Win32);
Unix never cared, but that's what we love about it
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62112 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testdir.c')
-rw-r--r-- | test/testdir.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/testdir.c b/test/testdir.c index ee26c8ef7..c499554c5 100644 --- a/test/testdir.c +++ b/test/testdir.c @@ -118,6 +118,9 @@ int main(void) apr_dir_read(&finfo, finfo_flags, this_dir), APR_STATUS_IS_ENOENT, "OK", "Failed") + STD_TEST_NEQ(" closing dir", + apr_dir_close(this_dir)); + /* Cleanup */ STD_TEST_NEQ(" Cleanup file1", apr_file_remove("dir1/file1", pool)) |