diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2003-01-02 14:05:42 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2003-01-02 14:05:42 +0000 |
commit | 99d136dd95de5cb2cb838de578549da96ee4f742 (patch) | |
tree | 0f16ce8a7576670aa17604518c05774dde7c26ca /test | |
parent | 43364455d6395ac4b1492e67d8ce2970d45b321b (diff) | |
download | libapr-99d136dd95de5cb2cb838de578549da96ee4f742.tar.gz |
don't test whether or not the OS will let us open a directory
as a regular file... that isn't controlled by APR and on some
platforms it will actually work
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64256 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r-- | test/testfile.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/test/testfile.c b/test/testfile.c index 8e2f9ae29..318b5c532 100644 --- a/test/testfile.c +++ b/test/testfile.c @@ -83,19 +83,6 @@ static void test_open_noreadwrite(CuTest *tc) CuAssertPtrEquals(tc, NULL, thefile); } -static void test_open_dir_read(CuTest *tc) -{ - apr_status_t rv; - apr_file_t *thedir = NULL; - - rv = apr_file_open(&thedir, DIRNAME, - APR_READ, - APR_UREAD | APR_UWRITE | APR_GREAD, p); - CuAssertTrue(tc, rv != APR_SUCCESS); - CuAssertIntEquals(tc, 1, APR_STATUS_IS_EACCES(rv)); - CuAssertPtrEquals(tc, NULL, thedir); -} - static void test_open_excl(CuTest *tc) { apr_status_t rv; @@ -518,7 +505,6 @@ CuSuite *testfile(void) CuSuite *suite = CuSuiteNew("File I/O"); SUITE_ADD_TEST(suite, test_open_noreadwrite); - SUITE_ADD_TEST(suite, test_open_dir_read); SUITE_ADD_TEST(suite, test_open_excl); SUITE_ADD_TEST(suite, test_open_read); SUITE_ADD_TEST(suite, test_open_readwrite); |