summaryrefslogtreecommitdiff
path: root/test/testnames.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove trailing whitespaces in *.c.Ivan Zhakov2022-11-201-8/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905414 13f79535-47bb-0310-9956-ffa450edef68
* apr_filepath_merge: Fix truename length calculation on WindowsBranko Čibej2015-06-171-0/+34
| | | | | | | | | | in cases where the "short" name variant is actually longer than the "long" or "true" name. Patch submitted bu Bert Huijben <rhuijben a.o>. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1685929 13f79535-47bb-0310-9956-ffa450edef68
* hide an unused variable on UnixJeff Trawick2013-03-241-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1460405 13f79535-47bb-0310-9956-ffa450edef68
* Remove assumption that drive letters are always uppercase.Greg Stein2010-07-051-0/+44
| | | | | | | | | | | | | | * file_io/win32/filepath.c: (same_drive): new helper function (apr_filepath_merge): use helper rather than a simple comparison * test/testnames.c: (merge_lowercasedrive): do some tests with lowercase drive names Patch by: Bert Huijben <bert {at} qqmail.nl> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@960665 13f79535-47bb-0310-9956-ffa450edef68
* check that the library function succeeded, not thatJeff Trawick2007-11-181-2/+2
| | | | | | | APR_SUCCESS == 0 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@596027 13f79535-47bb-0310-9956-ffa450edef68
* We are reasonably confident this behaves as expected,William A. Rowe Jr2007-10-141-1/+15
| | | | | | | | | | | | | | | | | | | | | and while we will continue to emit noise when the strings mismatch, apr_filepath_get didn't promise any canonicalized correct path. mingw/cygwin users requested the drive case check already since those can show up as lowercase (and we canonicalize these 26 values to uppercase for consistency), I just observed the same on Windows 2003 Server SP2. But worse, the string compare is bogus, since one can set their path to c:\Apache~.6 when canonically the path is c:\Apache2.2.6, and we didn't promise otherwise. We'll gently ignore this exception on OS2/Netware/Win32 where I presume the same can happen. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@584625 13f79535-47bb-0310-9956-ffa450edef68
* Handle the variable length volume names on NetWareBradley Nicholes2006-09-211-0/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@448611 13f79535-47bb-0310-9956-ffa450edef68
* Fix the typo.Joe Orton2006-08-031-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428317 13f79535-47bb-0310-9956-ffa450edef68
* Update license header.Joe Orton2006-08-031-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428313 13f79535-47bb-0310-9956-ffa450edef68
* Revert my last commit. I've determined that data becomes data, whileWilliam A. Rowe Jr2006-07-241-1/+1
| | | | | | | data/ remains data/. ../../.. should observe the same behavior, so this is effectively a bug, even if it has no negative impact. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@424900 13f79535-47bb-0310-9956-ffa450edef68
* My revision should have confirmed ../../.. -> ../../../William A. Rowe Jr2006-07-241-1/+1
| | | | | | since the truename function decorates 'directories' with '/'. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@424893 13f79535-47bb-0310-9956-ffa450edef68
* From svn issue 1869, test for ../../../ as submitted, plus i've addedWilliam A. Rowe Jr2006-07-231-0/+19
| | | | | | | | | | the pattern ../../.. which breaks the reporter's assumptions about the fix. Reviewing the bug now. Submitted by: Lieven Govaerts <lgo mobsol.be> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@424831 13f79535-47bb-0310-9956-ffa450edef68
* * test/testnames.c (root_from_cwd_and_back): Fix segfault onJoe Orton2006-03-011-1/+1
| | | | | | | non-Win32. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@382033 13f79535-47bb-0310-9956-ffa450edef68
* Proveup: Bug 38801 reported by <kevin_wise motorola.com>William A. Rowe Jr2006-03-011-0/+33
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@382029 13f79535-47bb-0310-9956-ffa450edef68
* OS/2 requires a drive letter in the path to be absolute.Brian Havard2006-02-141-1/+1
| | | | | | | This fixes all 3 failures of testnames on OS/2. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@377711 13f79535-47bb-0310-9956-ffa450edef68
* Rules out netware from this scenario per Brad.William A. Rowe Jr2006-02-091-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@376473 13f79535-47bb-0310-9956-ffa450edef68
* Testcase to reproduce bug 31878, incomplete partial root on UFS syntaxWilliam A. Rowe Jr2006-02-091-4/+17
| | | | | | platforms. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@376401 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
* Add the line number to the verbose output from abts. This also removesRyan Bloom2004-05-141-37/+37
| | | | | | | 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-64/+64
| | | | | | | | | | | | 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
* 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
* Preserve leading '../' segments as when merging to an empty andWilliam A. Rowe Jr2003-09-171-0/+13
| | | | | | | | | unrooted path - fixes a bug observed in SVN with Win32/Netware/OS2. Submitted by: Mike Pilato <cmpilato@collab.net>, William Rowe git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64627 13f79535-47bb-0310-9956-ffa450edef68
* Add the NetWare file system root stringBradley Nicholes2003-01-081-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64280 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
* Look at the status before the pointer resultWilliam A. Rowe Jr2002-12-311-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64245 13f79535-47bb-0310-9956-ffa450edef68
* ABS_ROOT is simpler to follow if it is what its name impliesWilliam A. Rowe Jr2002-12-311-16/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64244 13f79535-47bb-0310-9956-ffa450edef68
* Make the testnames program portable. This fails one test on WindowsRyan Bloom2002-12-171-14/+20
| | | | | | | currently, but that is an actual bug in the code, not the test suite, git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64186 13f79535-47bb-0310-9956-ffa450edef68
* Migrate testnames to the new test suite.Ryan Bloom2002-12-071-70/+153
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64128 13f79535-47bb-0310-9956-ffa450edef68
* Use apr_ischar() ... especially within apr itself!William A. Rowe Jr2002-06-231-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63515 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
* clean up some gcc warningsJeff Trawick2001-10-121-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62421 13f79535-47bb-0310-9956-ffa450edef68
* Get this compiling again. Seems like the right choice.Justin Erenkrantz2001-07-011-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61838 13f79535-47bb-0310-9956-ffa450edef68
* get rid of an unused local variableJeff Trawick2001-06-261-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61799 13f79535-47bb-0310-9956-ffa450edef68
* Hmmm... been sitting on this little test bench a while, time to share.William A. Rowe Jr2001-05-161-6/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61648 13f79535-47bb-0310-9956-ffa450edef68
* get rid of a couple of warnings in testnames.c, one for a bad printfJeff Trawick2001-05-011-2/+2
| | | | | | | | | | | | | | | call and one for an argument type mismatch still one left: testnames.c: In function `mergeresult': testnames.c:86: warning: passing arg 1 of `apr_filepath_root' from incompatible pointer type I'm not sure why first parm to apr_filepath_root() and first parm to apr_filepath_merge() have different types (and thus the same local var can't be passed cleanly to both). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61576 13f79535-47bb-0310-9956-ffa450edef68
* Hmmm... fgets() is flavored a bit differenly from gets()William A. Rowe Jr2001-04-091-0/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61491 13f79535-47bb-0310-9956-ffa450edef68
* gets is an unsafe function, and it outputs and error message on Linux.Ryan Bloom2001-04-091-2/+2
| | | | | | | Using fgets makes this compile quietly. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61488 13f79535-47bb-0310-9956-ffa450edef68
* Add my testbench that demonstrates apr_filepath_merge. This would beWilliam A. Rowe Jr2001-04-081-0/+130
better written to handle and compare a list of demonstration cases to the expected results, but I've no time for it this weekend git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61483 13f79535-47bb-0310-9956-ffa450edef68