summaryrefslogtreecommitdiff
path: root/src/test
Commit message (Collapse)AuthorAgeFilesLines
* Intendation fixedtschoening2016-07-021-167/+162
| | | | git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1751050 13f79535-47bb-0310-9956-ffa450edef68
* errorhandlertestcase failed in Linux, I guess because :x.log is a valid file ↵tschoening2016-03-241-2/+3
| | | | | | name there. That's not the case under e.g. NTFS and from my understanding the prupose of the PRIMARY appender is simply to fail to be used because of an invalid file name and trigger FALLBACK that way. If that fails and logigng into :x.log succeeds, the test fails. So I changed the file name to use to ".", which should be invalid in most cases. git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1736451 13f79535-47bb-0310-9956-ffa450edef68
* LOGCXX-400: Changes of comment 2 applied.tschoening2016-03-171-9/+9
| | | | git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1735450 13f79535-47bb-0310-9956-ffa450edef68
* I always wondered why I get the folder "xyz" in my root and found the reason ↵tschoening2015-10-111-9/+9
| | | | | | now, it's created during errorhandlertest, which uses fallback1.xml. I moved that folder to the output dir, which seems to be the better place and the test still passes. I guess it doesn't care where the folder is, but only relies on :x.log not being created and that's still the case. Anyways, we dont' want to write to arbitrary places in the file system, especially not into non-temp folders and if we write everything else to "output" already. git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1707951 13f79535-47bb-0310-9956-ffa450edef68
* LOGCXX-457: Changed test4, 5 and 6 to delete their generic files before ↵tschoening2015-10-091-11/+97
| | | | | | running and changed test7 to execute 4, 5 and 6 and simulate a non empty directory that way. The tests now pass using empty and non empty directory and I hope to not have totally wasted my time... :-( But all other tests worked with and without empty directory, so I hope my changes have some purpose. git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1707820 13f79535-47bb-0310-9956-ffa450edef68
* LOGCXX-457: Pushing back the wait factor because it's not as important as I ↵tschoening2015-10-091-13/+13
| | | | | | thought, if needed at all. The tests still pass with an empty directory. git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1707807 13f79535-47bb-0310-9956-ffa450edef68
* LOGCXX-457: test5 failed because it wrongly expected .gz extension.tschoening2015-10-091-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1707806 13f79535-47bb-0310-9956-ffa450edef68
* LOGCXX-457: Reverting my behaviour changes for test 6, because I was on the ↵tschoening2015-10-091-4/+4
| | | | | | completely wrong track. git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1707805 13f79535-47bb-0310-9956-ffa450edef68
* LOGCXX-457: Improved debugging so the console logger output always starts on ↵tschoening2015-10-091-1/+1
| | | | | | a new line and is better readable. git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1707781 13f79535-47bb-0310-9956-ffa450edef68
* LOGCXX-457: Forgot to commit some additional macros last ime.tschoening2015-10-091-27/+29
| | | | git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1707780 13f79535-47bb-0310-9956-ffa450edef68
* LOGCXX-457: I think I've found the reason for at least test6 failing: The ↵tschoening2015-10-091-48/+89
| | | | | | | | | | first rollover is done on the second log statement, which is only issued after some sleeping time. The problem is that the first file name to check for is created using "now" and that could have easily past if the second statement is issued. If the first file name is created with that in mind one second in the future, the first log statement can consume the current second of "now" including the sleep and still the first file will be found successfully, because it is expected to be created with the next second. I've added a waitFactor to logMsgAndSleep, because I think at least for test6 we need to make sure that each subsequent file is created in the next second, because that's how we build the file names: One second each. If we sleep in the logging only for half a second, two we may have two log statements within the same second resulting in another missing file. Interestingly, during my tests that didn't seem to make any difference... Additionally I've created test7 repeatly calling test6, because during my tests test6 succeeded even without my changes sometimes, but not always. With the changes it seems to succeed always. git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1707768 13f79535-47bb-0310-9956-ffa450edef68
* LOGCXX-457: Reworked the other tests to reduce redundant code. The same ↵tschoening2015-10-091-206/+162
| | | | | | tests like before fail now, so I shouldn't have broken too much. git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1707759 13f79535-47bb-0310-9956-ffa450edef68
* LOGCXX-457: Chaning indentation, because it wasn't really uniform before, ↵tschoening2015-10-091-289/+293
| | | | | | isn't compared to other source files and my IDE is configured to use tabs and I brought them in in the last commit already. But that shouldn't be a problem because it's easier to change form tabs to spaces again than the other way around, if some parts use indentation 8, other 2 and most of the other files something around 4 and 8. git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1707718 13f79535-47bb-0310-9956-ffa450edef68
* LOGCXX-457: I've reworked test1 to reduce the amount of duplicated code: All ↵tschoening2015-10-091-74/+191
| | | | | | tests seem to produce file names in the same way, log some messages and most of them check results using file content comparison. The test still succeeds and I formerly got an access violation in fprintf if not all tests succeeded, which is gone now as well. git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1707714 13f79535-47bb-0310-9956-ffa450edef68
* LOGCXX-457: Changed delayUntilNextSecond to delayUntilNextSecondWithMsg, ↵tschoening2015-10-091-3/+3
| | | | | | because I don't see why only some should print the msg, while others don't. git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1707679 13f79535-47bb-0310-9956-ffa450edef68
* LOGCXX-457: Removed hard coded 100 milliseconds to get a more uniform behaviour.tschoening2015-10-091-12/+12
| | | | git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1707678 13f79535-47bb-0310-9956-ffa450edef68
* LOGCXX-457: delayUntilNextMinute is not used (anymore) and even if it will ↵tschoening2015-10-091-9/+0
| | | | | | be needed in the future it shoudl be implemented calling delayUnitNextSecond. git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1707676 13f79535-47bb-0310-9956-ffa450edef68
* Added delayUntilNextSecondWithMsg because the same msg was hard coded 3 times.tschoening2015-10-081-9/+10
| | | | git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1707615 13f79535-47bb-0310-9956-ffa450edef68
* Applied the same change like for date.cpp about apr.h defining INT64_C, only ↵tschoening2015-10-081-6/+2
| | | | | | that in this file everythign should have been OK before already because apr_strings.h was included before INT64C was checked. But now the code should look more clearly. git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1707614 13f79535-47bb-0310-9956-ffa450edef68
* We rely on apr anyways, so include it earlier, because APR will then ↵tschoening2015-10-081-2/+3
| | | | | | detect/define WIN32 on it's own an WIn32 users don'T need to manually anymore. git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1707552 13f79535-47bb-0310-9956-ffa450edef68
* LOGCXX-428: Wildcards in Makefile.am break either VPATH or non-VPATH installsrhys2014-12-1210-189/+338
| | | | | | | | | | | | | | | | | Also, LOGCXX-446: make install fails, trying to overwrite header files Many Makefile.am files spread throughout the source tree used wildcards. This is invalid, as discussed at https://www.gnu.org/software/automake/manual/html_node/Wildcards.html. The use of wildcards was problematic for VPATH builds, in particular there was one Makefile.am which included srcdir and builddir headers twice. Correcting it to install only the builddir log4cxx.h and the remaining headers from srcdir/*.h addresses LOGCXX-446. git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1644820 13f79535-47bb-0310-9956-ffa450edef68
* LOGCXX-425: exceptions in CachedDateFormatTestCase after LOGCXX-420tschoening2014-02-191-9/+6
| | | | git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1569635 13f79535-47bb-0310-9956-ffa450edef68
* LOGCXX-425: Changed the calculation of millis in a formatted string again ↵tschoening2014-02-181-31/+45
| | | | | | and added another tests for LOGCXX-420. There's some debug output in there which need to get removed later, but for now I need some help in defining the correct behavior and want others to be able to test themselves. git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1569535 13f79535-47bb-0310-9956-ffa450edef68
* LOGCXX-425: I added a test for LOGCXX-420 which failed in the former ↵tschoening2014-02-181-10/+33
| | | | | | | | codebase, additionally to the problem with the exceptions. The reason for the exceptions were negativ indices, the calculations for offsets in the magicString introduced in LOGCXX-420 were wrong because the magicString is always 3 chars only. This and the failing added test for LOGCXX-420 has been fixed, but test 17 of cacheddateformattestcase.cpp is failing now. I will have a look into this afterwards. git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1569322 13f79535-47bb-0310-9956-ffa450edef68
* Uncomment out tests.rhys2014-02-121-12/+12
| | | | | | | Accidentally nuked these in the prior commit. Sorry. git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1567531 13f79535-47bb-0310-9956-ffa450edef68
* Get e.what() on unexpected std::exceptionrhys2014-02-122-12/+19
| | | | | | | Done towards chasing down cacheddateformattestcase problems. git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1567530 13f79535-47bb-0310-9956-ffa450edef68
* Remove +x on .{cpp,h,xml,properties} and witnessesrhys2014-02-1225-0/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1567526 13f79535-47bb-0310-9956-ffa450edef68
* LOG4CXX-319: Sprinkle semis in examples, testsrhys2014-02-1224-151/+151
| | | | | | | | | | r1566619 updated logger.h to make LOG4CXX_INFO and friends proper statements using the common do { stuff } while (0) idiom. There were many places within the 'make' and 'make check' targets that needed to be updated now that the macros behave like statements. git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1567525 13f79535-47bb-0310-9956-ffa450edef68
* LOGCXX-305: Property/DOMConfigurator::configureAndWatch can continue to run ↵tschoening2014-02-101-0/+66
| | | | | | after APR termination git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1566613 13f79535-47bb-0310-9956-ffa450edef68
* LOGCXX-336: Test compilation fails: Overloading ambiguitytschoening2014-02-091-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1566349 13f79535-47bb-0310-9956-ffa450edef68
* LOG4CXX-423: Repair autogen script warningsrhys2014-01-301-1/+1
| | | | | | | | | | | | Minor changes to Autoconf/Automake artifacts so that libtoolize: (GNU libtool) 2.4.2 automake: automake (GNU automake) 1.12.5 autoconf: autoconf (GNU Autoconf) 2.69 give a clean bill of health when running ./autogen.sh. git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1562810 13f79535-47bb-0310-9956-ffa450edef68
* LOG4CXX-421: Some progress in fixing build errors on Windows and specially ↵tschoening2014-01-262-3/+8
| | | | | | Borland Builder. git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1561536 13f79535-47bb-0310-9956-ffa450edef68
* Add myself to new <developers/> sectionrhys2014-01-02297-0/+19950
git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1554831 13f79535-47bb-0310-9956-ffa450edef68