summaryrefslogtreecommitdiff
path: root/test/common
Commit message (Collapse)AuthorAge
* Merge branch 'master' into windows_binary_packagesChris Wilson2017-11-28
|\
| * Fix -Wundefined-bool-conversion compile failure of master branchChris Wilson2017-10-16
| | | | | | | | | | | | | | | | | | | | Master build fails with: lib/common/Timer.cpp:171:10: error: reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer may be assumed to always convert to true [-Werror,-Wundefined-bool-conversion]. Cannot get regtests to pass on this feature branch without fixing this. Also remove unused code from Timers.
* | Remove invalid use of null references (undefined behaviour)Chris Wilson2017-11-26
|/ | | | | | | | | | | Enable the relevant compiler warning as an error, if supported (-Werror=undefined-bool-conversion). http://www.gotw.ca/conv/002.htm http://stackoverflow.com/questions/2165078/a-reference-can-not-be-null-or-it-can-be-null (cherry picked from commit f2911acac0c8375a08ecc0a55f853a5a59c4d511) (cherry picked from commit 5a50b98401302a5ba89366e4c0f8cccdd88d8722)
* Reduce precision of common timer testChris Wilson2017-06-22
| | | | | | | | | | | | | | | | | | Ideally timers would be perfectly accurate and we could sleep for 1.0 seconds, but on OSX in particular they could fire 50-100 ms late (I've seen 4 ms in practice) and we don't want the tests to fail because of this, because we don't really need that kind of precision in practice. So we reduce the timer intervals by 100ms to be safe. Increase logging level and add timestamps in testcommon. Should help to debug frequent test failures such as Condition [t2.HasExpired()] on OSX hosts on Travis. Add a SettingsGuard to the Console logger for its specific settings, such as showing times and microseconds. (cherry picked from commit a5e6cff1d435329b0121417ed9509e315ce0edd5) (cherry picked from commit 8d02eebce553ed822e0fcd60d6e319384e15ba4b)
* Fix file locking on Windows.Chris Wilson2015-04-13
| | | | | NamedLock simply didn't work before. This may cause test failures, but the tests are already failing on Windows, and must be fixed.
* Reduce verbosity of testcommon by hiding some log messages.Chris Wilson2015-02-25
|
* Fix compile error in MemBlockStream.Chris Wilson2014-02-11
| | | | | | Fix test/common memory leak checks now that MemBlockStream allocates another block.
* Use more efficient direct reset of Timers instead of assignment.Chris Wilson2012-11-17
|
* Timer arguments are in milliseconds, not seconds.Chris Wilson2012-11-06
|
* Log the expected and actual values when comparison failed.Chris Wilson2011-04-23
|
* Fixes for gcc 4.4.Martin Ebourne2009-04-23
|
* Rename NDEBUG flag to BOX_RELEASE_BUILD, as other projects use NDEBUG as Chris Wilson2008-12-30
| | | | | | well (e.g. wxWidgets) and it causes conflicts which are difficult to resolve.
* Name the timers to help with debugging.Chris Wilson2008-08-03
|
* Undo mangling by tailorChris Wilson2008-04-04
|
* TailorizationChris Wilson2008-04-04
| | | | | | | | | | | Import of the upstream sources from Repository: http://localhost:8000/ Kind: hg Revision: 7807b7768163f1c2537756abe5416063989cebb1 Original author: tailor@rocio.int.aidworld.org Date: 2008-03-16 19:44:36+00:00
* Allow configuration of the server port that the client will connect to Chris Wilson2008-03-28
| | | | | | | | | | | | | (bbackupd and bbackupquery). Redesign ConfigurationVerify to use classes instead of structs. Use port 22011 instead of 2201 during tests, to reduce the chances of conflicting with a running bbstored or other process. Ignore autogen_* in svn:ignore everywhere instead of individual per-file ignores.
* Fix regex tests for HAVE_REGEX_SUPPORT. (refs #3, merges [1682])Chris Wilson2007-07-26
|
* Create logger object in the right place to avoid accidental triggering.Chris Wilson2007-07-26
|
* Fix running common tests in release mode, by not doing things thatChris Wilson2007-05-02
| | | | | crash in release mode, but assert in debug mode. (refs #3)
* Test that PartialReadStream and ReadGatherStream can handle streamsChris Wilson2007-04-28
| | | | | over 2GB in size. (refs #3)
* Declare global std::string variables that hold extra arguments forChris Wilson2007-04-22
| | | | | | | | | | | | | executables run in tests, to be implemented in a follow-up patch. ConvertPaths, LaunchServer and RunCommand all take std::string references instead of char*. Move safe_sleep from test/common to lib/server/Test.h so that all tests can use it. (refs #3)
* Check for exclude entries that end in a path separator, and log a warningChris Wilson2007-01-16
| | | | | (refs #3)
* Fixed a race condition caused by rescheduling in signal handler (refs Chris Wilson2006-12-03
| | | | | #3, refs #9)
* Make the timer test reliable by using nanosleep() instead of sleep(), Chris Wilson2006-12-03
| | | | | | since sleep() may use signals and interfere with SIGALRM, and also cannot be resumed if interrupted by a signal. (refs #3, refs #9).
* Added tests for timers with zero interval, which should never expire Chris Wilson2006-11-13
| | | | | (refs #9)
* Fix scoping to ensure that objects which allocate memory via the Chris Wilson2006-11-13
| | | | | | standard libraries, free it before the memleak tests, to avoid test failures (refs #3)
* Added generic timer support classChris Wilson2006-11-06
|
* Added tests for case-insensitive matching in exclude lists on Win32.Chris Wilson2006-10-15
| | | | | (refs #3)
* Compile fix (refs #3)Chris Wilson2006-10-15
|
* * Added support for Win32 temporary filesChris Wilson2006-10-13
| | | | | | | * Added InvisibleTempFileStream class and unit tests for it * Use InvisibleTempFileStream instead of FileStream for temporary files (refs #3)
* * mergeChris Wilson2006-07-27
| | | | | | | - This is my current patch queue. I think that all of these are safe to apply. This is just under half of the pending changes in chris/general (the easy half).
* Merged 210:218 from chris/win32/merge/07-win32-fixes to trunkMartin Ebourne2005-12-12
|
* Fixing up svn:executable properties.Martin Ebourne2005-12-12
| | | | You may need a new checkout to see this.
* Merged martin/autoconf at r35 to trunkMartin Ebourne2005-12-07
|
* Merged martin/ppcfixes at r3 to trunkMartin Ebourne2005-11-30
|
* Merged martin/solaris at r9 to trunkMartin Ebourne2005-11-30
|
* Box Backup 0.09 with a few tweeksBen Summers2005-10-14