summaryrefslogtreecommitdiff
path: root/test/testdir.c
Commit message (Collapse)AuthorAgeFilesLines
* * test/testdir.c (test_rmkdir_nocwd): Avoid failures on platformsJoe Orton2005-09-271-5/+13
| | | | | | | where directories in use cannot be removed. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@291925 13f79535-47bb-0310-9956-ffa450edef68
* * file_io/unix/dir.c (apr_dir_make_recursive): Fix infinite recursionJoe Orton2005-09-241-0/+25
| | | | | | | | | if mkdir fails for all path components. * test/testdir.c (test_rmkdir_nocwd): Add test case. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@291339 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright year to 2005 and standardize on current copyright owner line.Justin Erenkrantz2005-02-041-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@151412 13f79535-47bb-0310-9956-ffa450edef68
* Presently if we fail in apr_assert_success we get the line number forDavid Reid2004-06-071-5/+5
| | | | | | | | | | | | testutil.c reported. Not very useful. This change adds the passing of the (correct) line number and also a macro to ease said passing. I've changed all instances of apr_assert_success to use the new macro, but not all the tests build on this platform so others should check that all is well for them. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65171 13f79535-47bb-0310-9956-ffa450edef68
* Add the line number to the verbose output from abts. This also removesRyan Bloom2004-05-141-38/+38
| | | | | | | a test that is segfaulting in testshm. That will need to be fixed. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65095 13f79535-47bb-0310-9956-ffa450edef68
* Move the APR test suite from CuTest to abts. The output is cleaner,Ryan Bloom2004-05-131-68/+68
| | | | | | | | | | | | and it prints output while running the test. Also, if a test fails the rest of the test function is run, allowing for proper cleanup. Finally, it is possible to call the same function multiple times with different data, and each call is considered a separate test. This is the first of a multi-step process to get a more useful test suite. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65091 13f79535-47bb-0310-9956-ffa450edef68
* * include/apr_file_info.h: Remove misleading @remark about dot/dot-dotJoe Orton2004-02-191-51/+10
| | | | | | | | | | entries returned by apr_dir_read(); reported by Philip Martin. * test/testdir.c (test_readdir_onedot, test_readdir_twodot): Remove tests. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64912 13f79535-47bb-0310-9956-ffa450edef68
* Relicense APR under Apache License, Version 2.0Justin Erenkrantz2004-02-131-49/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64904 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright notices to 2003.Thom May2003-01-011-1/+1
| | | | | | | No functional changes git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64251 13f79535-47bb-0310-9956-ffa450edef68
* Only APR_FINFO_DIRENT is guarenteed to be supported... other platformsWilliam A. Rowe Jr2002-12-291-5/+5
| | | | | | | | | may be missing things such as APR_FINFO_GROUP, APR_FINFO_INODE etc. It would be healthy to add a {seperate} test that APR_FINFO_MIN at least succeeds, but that should not be part of the mainline tests. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64231 13f79535-47bb-0310-9956-ffa450edef68
* Add some tests that were written but not being run.Ryan Bloom2002-11-241-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64080 13f79535-47bb-0310-9956-ffa450edef68
* Fix the names for all tests. (I got sick of seeing Test in the output)Ryan Bloom2002-11-241-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64079 13f79535-47bb-0310-9956-ffa450edef68
* Change how individual test programs are run. Now, testall is the driverRyan Bloom2002-11-231-7/+0
| | | | | | | | for all tests. IF you just want to run individual tests, you do that by passing the name of the test to testall. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64065 13f79535-47bb-0310-9956-ffa450edef68
* Remove "unused variable" warnings from GCC.Joe Orton2002-11-141-4/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64024 13f79535-47bb-0310-9956-ffa450edef68
* Migrate the directory test program to the new test suite.Ryan Bloom2002-11-111-47/+240
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64011 13f79535-47bb-0310-9956-ffa450edef68
* Update our copyright for this year.Roy T. Fielding2002-03-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63117 13f79535-47bb-0310-9956-ffa450edef68
* gotta close the dir before it can be removed (at least on Win32);Jeff Trawick2001-08-061-0/+3
| | | | | | | 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
* use exit status 0 for success in testdir, testoc, and testprocJeff Trawick2001-08-021-1/+1
| | | | | | | | | since testoc depends on occhild, build occhild when testoc is built add some trivial error code display logic to testoc git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62093 13f79535-47bb-0310-9956-ffa450edef68
* Make testdir more portableBrian Havard2001-06-281-3/+5
| | | | | | | | - On anything not unix, a file must be closed before it can be deleted - Use APR_STATUS_IS_ENOENT to test for ENOENT. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61822 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix for the unix version of apr_dir_read(). I caught it on myBen Collins-Sussman2001-06-151-0/+131
FreeBSD 4.3 machine while trying to debug Subversion. :) It happened in the thread-less section of code (since threads are turned off on FreeBSD). It turns out that apr_dir_remove() had previously failed and set the global `errno'. Then later on I tried to do a looping apr_dir_read() in an empty directory. After returning `.' and `..' as usual, the underlying unix readdir() returned NULL -- as it should. However, apr_dir_read() didn't return ENOENT as it ought to; instead, it noticed that `errno' still had an old value and returned that instead. The solution is to zero errno beforehand, unless someone has a better suggestion. * file_io/unix/dir.c (apr_dir_read): clear errno *before* you depend on its value after calling readdir(). * test/testdir.c: new regression test for this bug. * test/Makefile.in (testdir): build the new test. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61771 13f79535-47bb-0310-9956-ffa450edef68