summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAge
* Check that DoHousekeeping() actually returns true.Chris Wilson2015-12-27
|
* Whitespace cleanup.Chris Wilson2015-12-27
|
* Fix deletion of test fixture directories with unicode names on Windows.Chris Wilson2015-12-25
| | | | | | | | We need to use CreateProcessW() instead of system() to pass these filenames to the rd command. Fixes every test that runs after test_unicode_filenames_can_be_backed_up in test/bbackupd.
* Fix deletion of fixtures between tests in test/backupstore.Chris Wilson2015-12-25
|
* Improve handing of error messages that Windows won't decode for some reason.Chris Wilson2015-12-24
|
* Properly initialise pBytesTransferred before WaitForOverlappedOperation returns.Chris Wilson2015-12-24
| | | | | Returning an uninitialised value was causing copying of random amounts of data in bbackupd on command socket disconnect, and crashes.
* Replace mpGetLine pointer with a std::auto_ptr.Chris Wilson2015-12-24
| | | | Allows us to remove cleanup code, because it happens automatically.
* Catch exceptions during destruction of BackupStoreRefCountDatabase as well.Chris Wilson2015-12-24
| | | | | Like HousekeepStoreAccount and BackupStoreCheck, throwing an exception during the destructor will terminate the application in an "unusual way".
* We need to include IOStreamGetLine.h on Unix as well as on Windows.Chris Wilson2015-12-24
|
* Throw an exception if we try to openlog() without closelog() first on Windows.Chris Wilson2015-12-24
| | | | Use INVALID_HANDLE_VALUE for invalid handle values, instead of 0.
* Improve error message when we fail to register our custom Event Source on ↵Chris Wilson2015-12-24
| | | | Windows.
* Remove duplicate error number from Windows log messages.Chris Wilson2015-12-24
| | | | | GetErrorMessage() already includes the error number in the text string that it returns, so we don't need to include it again.
* Catch exceptions during destruction of BackupStoreCheck as well.Chris Wilson2015-12-24
| | | | | Like HousekeepStoreAccount, throwing an exception during the destructor will terminate the application in an "unusual way".
* Add a version of KillServer that takes a pid_file, and reads the PID from it.Chris Wilson2015-12-24
|
* Don't use close() to close a Winsock socket.Chris Wilson2015-12-22
| | | | | We should always use closesocket() instead, which the Close() method already does, so just call it instead.
* Catch and log exceptions in the HousekeepStoreAccount destructor.Chris Wilson2015-12-22
| | | | | | Destructors aren't supposed to throw exceptions, and they can be called while cleaning up from a previous exception, which will terminate the application, so just log the error and carry on.
* Use rd instead of rmdir command, to try to work properly in appveyor.Chris Wilson2015-12-20
| | | | | I think something is on the PATH in Appveyor that makes rmdir /s/q fail, especially when run through Perl.
* Move reusable files from bin/bbstored to lib/bbstored.Chris Wilson2015-12-20
| | | | Break dependendency of test/bbackupd on individual files from other modules.
* Reinstate bbackupquery Makefile.extra, removed by 403e7e2.Chris Wilson2015-12-20
|
* Fix account deletion on Windows.Chris Wilson2015-12-17
| | | | Use the rmdir command instead of rm -rf.
* Remove getpid() that should never have been addedChris Wilson2015-12-14
|
* Print the message that we failed to send to the syslog, to make some ↵Chris Wilson2015-12-14
| | | | debugging possible
* Really fix file locking on WindowsChris Wilson2015-12-14
|
* Merge branch 'appveyor' of github.com:boxbackup/boxbackup into appveyorChris Wilson2015-12-14
|\
| * Fix Windows file locking to work with MSVCChris Wilson2015-12-14
| |
| * Add CTest configurations to CMake. Make some tests work on Windows/MSVC.Chris Wilson2015-12-13
| |
| * Move reusable code out of bin directories.Chris Wilson2015-12-13
| | | | | | | | | | Allows tests to depend on lib/bbackupd instead of bin/bbackupd, which was always a hack, and really doesn't work with CMake.
| * Add some little string functions to Utils.cpp.Chris Wilson2015-12-13
| | | | | | | | | | | | | | These functions check whether the beginning and end of a std::string match a supplied prefix or suffix, and remove that prefix or suffix, returning the remaining part. They are almost but not entirely trivial, and giving them names makes the code that uses them much more readable.
| * Remove the duplicate copy constructor that MSVC warns about.Chris Wilson2015-12-13
| |
| * Define TEST_EXECUTABLE to allow it to have different names on MSVC/CMake.Chris Wilson2015-12-13
| |
* | Add some little string functions to Utils.cpp.Chris Wilson2015-12-12
| | | | | | | | | | | | | | These functions check whether the beginning and end of a std::string match a supplied prefix or suffix, and remove that prefix or suffix, returning the remaining part. They are almost but not entirely trivial, and giving them names makes the code that uses them much more readable.
* | Merge branch 'appveyor' of github.com:boxbackup/boxbackup into appveyorChris Wilson2015-12-12
|\ \ | | | | | | | | | Some local commits were not pushed before, sorry.
| * | Define TEST_EXECUTABLE to allow it to have different names on MSVC/CMake.Chris Wilson2015-12-12
| | |
| * | Add a getpid() emulation for test/bbackupd on MSVCChris Wilson2015-12-12
| |/
* | Merge branch 'appveyor' of github.com:boxbackup/boxbackup into appveyorChris Wilson2015-12-10
|\|
| * Fix another use of a non-standard BSD variable.Chris Wilson2015-12-09
| |
| * Merge Arnaud Grandville's Windows fixes.Chris Wilson2015-12-09
| |\ | | | | | | | | | Merge branch 'master' of https://github.com/agrandville/boxbackup into appveyor
| | * add specific define to allow the use of std::min and sd::max from windowsAG2015-10-26
| | |
| | * min & max are not from std namespaceAG2015-10-26
| | | | | | | | | | | | | | | | | | u_int8_t is unsigned char strings.h file is missing errors generated by deprecated functions are now hidden (C4996 warning)
| | * Merge branch 'master' into fix_arm_struct_packingChris Wilson2015-09-21
| | |\
| | | * Merge branch 'master' into fix_exception_message_corruptionChris Wilson2015-09-21
| | | |\
| | | * | Really fix makeexception.pl.in this timeChris Wilson2015-09-02
| | | | |
| | | * | Fix exception message corruption.Chris Wilson2015-08-31
| | | | | | | | | | | | | | | | | | | | | | | | | Using the c_str() of a std::string after the string has been freed is unsafe and can lead to corrupted error messages in tests, or worse.
| | * | | Merge branch 'master' into fix_arm_struct_packingChris Wilson2015-09-21
| | |\ \ \ | | | | |/ | | | |/|
| | | * | Remove all timing dependency from test_ssl_keepalives().Chris Wilson2015-09-20
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test has always been fragile, and usually fails on Travis for reasons unknown, so replace the log parsing and intercepts with simple mocking code. This doesn't cover 100% of what the old test did, including diff timer aborts and the number of blocks used by the uploaded files, but it should be completely robust.
| | * | Add a test for reading and writing BackupStoreDirectory binary data.Chris Wilson2015-09-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See discussion of incompatible struct packing on ARM processors: http://lists.boxbackup.org/pipermail/boxbackup/2010-November/005818.html http://lists.boxbackup.org/pipermail/boxbackup/2011-February/005978.html Thanks to Leif Linderstam for identifying the problem and proposing a solution. This is just a test for the problem, not a fix in itself.
| | * | Comments and whitespace fixesChris Wilson2015-09-19
| | | |
| | * | Add support for uint16 types to ArchiveChris Wilson2015-09-19
| | |/
| * | Remove #defines of POSIX functions deprecated by Microsoft.Chris Wilson2015-12-09
| | | | | | | | | | | | | | | | | | These defines are too wide-reaching in their effects on unrelated code. Add a replacement for strncasecmp.
| * | Remove unused headers not present on Windows. Add missing header.Chris Wilson2015-12-09
| | |