summaryrefslogtreecommitdiff
path: root/test/testdir.c
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2007-11-06 00:50:41 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2007-11-06 00:50:41 +0000
commitc3054d68b422b6aa497dd24cc1094efbfff1bab7 (patch)
treec15fde8b7507444eb293827ab06ede7db855be9a /test/testdir.c
parent5fda43d1856f7416d6dbb8496c3d351842206440 (diff)
downloadapr-c3054d68b422b6aa497dd24cc1094efbfff1bab7.tar.gz
It is entirely pointless to have nonportable behaviors as examples
to end users of the library. Good point, however, for an @tip. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@592215 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testdir.c')
-rw-r--r--test/testdir.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/test/testdir.c b/test/testdir.c
index 82f145d6f..7cdc4bbff 100644
--- a/test/testdir.c
+++ b/test/testdir.c
@@ -234,20 +234,9 @@ static void test_rmkdir_nocwd(abts_case *tc, void *data)
APR_ASSERT_SUCCESS(tc, "change to temp dir", apr_filepath_set(path, p));
- rv = apr_dir_remove(path, p);
- /* Some platforms cannot remove a directory which is in use. */
- if (rv == APR_SUCCESS) {
- ABTS_ASSERT(tc, "fail to create dir",
- apr_dir_make_recursive("foobar", APR_OS_DEFAULT,
- p) != APR_SUCCESS);
- }
-
APR_ASSERT_SUCCESS(tc, "restore cwd", apr_filepath_set(cwd, p));
- if (rv) {
- apr_dir_remove(path, p);
- ABTS_NOT_IMPL(tc, "cannot remove in-use directory");
- }
+ APR_ASSERT_SUCCESS(tc, "remove cwd", rv = apr_dir_remove(path, p));
}