summaryrefslogtreecommitdiff
path: root/lib/common
Commit message (Collapse)AuthorAge
* Move TemporaryDirectory.h into Utils.h and Utils.cpp to avoid duplicateChris Wilson2011-01-21
| | | | | definitions of inline functions.
* Add an implementation of a stream wrapper that limits reading rate, toChris Wilson2011-01-12
| | | | | control bandwidth usage.
* Add some more logging and exception macros. Refactor to reduce nestingChris Wilson2011-01-12
| | | | | depth and increase modularity.
* Move accurate sleep code from Test.cpp to BoxTime, allow requesting timesChris Wilson2011-01-12
| | | | | | | in microseconds with ShortSleep(), make safe_sleep() use it. Rename MILLI_SEC_IN_NANO_SEC to MILLI_SEC_IN_SEC which is what it actually is.
* Add a macro for logging timespec structures. (merges [2744])Chris Wilson2011-01-08
|
* Avoid fatal error caused by recursive logging if we fail to open theChris Wilson2010-11-17
| | | | | file we're supposed to log to.
* Improve accuracy and utility of FileStream::StreamClosed().Chris Wilson2010-11-17
|
* Fix calculation error in buffered writer.Chris Wilson2010-09-13
|
* Implement write buffering on directories.Chris Wilson2010-09-13
|
* Fix demangled logging of backtraces on OSX by using dladdr to get functionChris Wilson2010-08-31
| | | | | names rather than trying to parse the results of backtrace_strings().
* Reformat TEST_CHECK_THROWS macro for readability.Chris Wilson2010-08-27
|
* Add support for account numbers greater than 0x7fffffff without wrapping.Chris Wilson2010-06-06
|
* Replace BOX_FILE_BBACKUPD_DEFAULT_CONFIG with Chris Wilson2010-06-06
| | | | | BOX_GET_DEFAULT_BBACKUPD_CONFIG_FILE.
* Add header with macros for QDBM error logging.Chris Wilson2010-03-18
|
* Add new exception codes for database errors.Chris Wilson2010-03-18
|
* Make TestGetFileSize take a std::string instead of a char * for C++ Chris Wilson2010-03-18
| | | | | style.
* Add a new exception macro for throwing exceptions that are related to a Chris Wilson2010-03-18
| | | | | file but not system errors.
* fix typo properlyChris Wilson2010-03-02
|
* UndoChris Wilson2010-03-02
|
* typoChris Wilson2010-03-02
|
* Workaround for problem with nanosleep() return values on OSX causing testChris Wilson2010-02-28
| | | | | to hang.
* Add some exceptions for use by database handling classes.Chris Wilson2010-02-22
|
* Rename LOG_AND_THROW_ERROR macro to THROW_SYS_ERROR for consistency and Chris Wilson2010-02-22
| | | | | brevity. Add THROW_SYS_FILE_ERROR which adds a filename to the message.
* Update banner to say 2003-2010.Chris Wilson2010-02-17
|
* Add overloaded hton() and ntoh() functions for file attribute comparisonChris Wilson2010-02-16
| | | | | macro.
* Move modification time functions out-of-line to help with debugging Chris Wilson2010-02-16
| | | | | them.
* Support throwing exception with more complex stringstream-formatted Chris Wilson2010-02-15
| | | | | messages.
* Log more detailed info about backup comparison failures, for debugging.Chris Wilson2010-02-10
| | | | | | Enable -V option in bbackupquery, and document that -q, -v, -V and -W<level> are allowed in the command-line help.
* Allow logging any std::ostringstream expression in Chris Wilson2010-02-07
| | | | | THROW_EXCEPTION_MESSAGE, fixes compile error.
* Run Perl scripts quietly during make.Chris Wilson2010-01-24
|
* Add methods to read and write exact 32-bit and 64-bit types.Chris Wilson2009-11-11
|
* Make the version of Box Backup available for use in Boxi.Chris Wilson2009-08-25
|
* Add a static variable to store the exceptions suppressed flag.Chris Wilson2009-07-05
|
* Suppress exception warnings when they are expected during a test.Chris Wilson2009-07-05
|
* Allow std::ostringstream formatting on the "line" part of Chris Wilson2009-06-28
| | | | | | TEST_EQUAL_LINE, so that it can be used to report object IDs for example.
* Add a #define for the Box Backup test port, 22011.Chris Wilson2009-06-28
|
* Make NamedLock take a std::string instead of a char pointer for C++ Chris Wilson2009-06-28
| | | | | style.
* Second part of FileExists change.Chris Wilson2009-06-27
|
* Make FileExists take a std::string instead of a const char * for C++ Chris Wilson2009-06-27
| | | | | style.
* Log the file name that could not be opened, even for access denied errors.Chris Wilson2009-05-22
|
* Improve debugging when opening temp file fails, by calling theChris Wilson2009-05-22
| | | | | filename constructor of FileStream.
* Fix test failure due to operator precedence problem with recentlyChris Wilson2009-04-27
| | | | | checked in system exit code comparison.
* Move definition of INVALID_HANDLE_VALUE and tOSFileHandle toChris Wilson2009-04-26
| | | | | BoxPlatform.h, to make them available in other files.
* Show expected and actual return codes from shell commands in tests.Chris Wilson2009-04-26
|
* Fixes for gcc 4.4.Martin Ebourne2009-04-23
|
* Log unexpected test results using logging framework rather than printf.Chris Wilson2009-04-13
|
* Change default location for config files from /etc/box to Chris Wilson2009-04-09
| | | | | /etc/boxbackup, thanks to Reinhard Tartler and the Debian Project.
* Show reasons for waiting during bbackupd and backupstorepatch tests,Chris Wilson2009-04-09
| | | | | | | | | | | to help with interpreting test output. When running at Trace level, where extra output from bbackupd etc. is common, log a single line at the start of waiting, instead of progress dots, to help with interpreting output. Show number of seconds waited for on Windows as well as Unixes.
* gcc 4.3 and 4.4 compile fixes, thanks to Reinhard Tartler and the DebianChris Wilson2009-04-03
| | | | | | | | project. See also: http://patch-tracking.debian.net/package/boxbackup/0.11~rc2+r2072-1 http://lists.warhead.org.uk/pipermail/boxbackup/2009-April/005159.html
* Add date to file logger, as requested by Kenny Millington.Chris Wilson2009-03-29
|