Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Fix build on ARM64 with unsigned char | Chris Wilson | 2017-06-26 |
| | | | | Thanks to Reinhard Tartler for pointing out the problem and suggesting the fix! | ||
* | Increase precision of timing on Windows. | Chris Wilson | 2017-06-22 |
| | | | | | | | Should hopefully reduce random failures of timing-dependent tests which rely on subsecond precision for accuracy. (cherry picked from commit c845b2e39fffeb560983a301d810616a6495469d) | ||
* | Reduce precision of common timer test | Chris Wilson | 2017-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 intercept of SYS_open on platforms that only have SYS_openat (e.g. arm64) | Chris Wilson | 2017-06-22 |
| | |||
* | Hopefully fix test/raidfile on Solaris. | Chris Wilson | 2017-06-18 |
| | | | | | 64-bit Solaris has _FILE_OFFSET_BITS defined (to 64), which was wrongly causing the substitute lseek in lib/intercept to enter the 32-bit branch. | ||
* | Normalize all the line endings | Chris Wilson | 2017-05-15 |
| | |||
* | Remove unused #includes. | Chris Wilson | 2016-09-19 |
| | |||
* | Simplify AddEventSource usage, avoid strdup(). | Chris Wilson | 2016-09-11 |
| | |||
* | Fix infinite loop in RateLimitingStream::Write(). | Chris Wilson | 2016-09-11 |
| | |||
* | Throw exception with message, instead of logging then throwing. | Chris Wilson | 2016-09-11 |
| | |||
* | Remove unused member variable. | Chris Wilson | 2016-09-11 |
| | |||
* | Fix Unix compilation using CMake. | Chris Wilson | 2016-09-09 |
| | | | | | | | | | | Add platform detection that's compatible with the old buildsystem and its m4 autoconfigury. Make Travis build and test using CMake as a separate target. Remove unused function BoxGetTemporaryDirectoryName() to fixes compile using CMake on Unix. | ||
* | Update platform feature detection to work with CMake. | Chris Wilson | 2016-09-03 |
| | | | | | | | Rewrite some macros in forms that can be parsed by our parser written in CMake language (fake m4 with regexps). Fix incorrect conditional includes and incorrect #if/#ifdef assumptions. | ||
* | Fix case of filenames of "text" files used to generate protocols and docs. | Chris Wilson | 2016-08-28 |
| | |||
* | Check that DoHousekeeping() actually returns true. | Chris Wilson | 2015-12-27 |
| | |||
* | Whitespace cleanup. | Chris Wilson | 2015-12-27 |
| | |||
* | Fix deletion of test fixture directories with unicode names on Windows. | Chris Wilson | 2015-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 Wilson | 2015-12-25 |
| | |||
* | Improve handing of error messages that Windows won't decode for some reason. | Chris Wilson | 2015-12-24 |
| | |||
* | Properly initialise pBytesTransferred before WaitForOverlappedOperation returns. | Chris Wilson | 2015-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 Wilson | 2015-12-24 |
| | | | | Allows us to remove cleanup code, because it happens automatically. | ||
* | Catch exceptions during destruction of BackupStoreRefCountDatabase as well. | Chris Wilson | 2015-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 Wilson | 2015-12-24 |
| | |||
* | Throw an exception if we try to openlog() without closelog() first on Windows. | Chris Wilson | 2015-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 Wilson | 2015-12-24 |
| | | | | Windows. | ||
* | Remove duplicate error number from Windows log messages. | Chris Wilson | 2015-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 Wilson | 2015-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 Wilson | 2015-12-24 |
| | |||
* | Don't use close() to close a Winsock socket. | Chris Wilson | 2015-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 Wilson | 2015-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 Wilson | 2015-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 Wilson | 2015-12-20 |
| | | | | Break dependendency of test/bbackupd on individual files from other modules. | ||
* | Reinstate bbackupquery Makefile.extra, removed by 403e7e2. | Chris Wilson | 2015-12-20 |
| | |||
* | Fix account deletion on Windows. | Chris Wilson | 2015-12-17 |
| | | | | Use the rmdir command instead of rm -rf. | ||
* | Remove getpid() that should never have been added | Chris Wilson | 2015-12-14 |
| | |||
* | Print the message that we failed to send to the syslog, to make some ↵ | Chris Wilson | 2015-12-14 |
| | | | | debugging possible | ||
* | Really fix file locking on Windows | Chris Wilson | 2015-12-14 |
| | |||
* | Merge branch 'appveyor' of github.com:boxbackup/boxbackup into appveyor | Chris Wilson | 2015-12-14 |
|\ | |||
| * | Fix Windows file locking to work with MSVC | Chris Wilson | 2015-12-14 |
| | | |||
| * | Add CTest configurations to CMake. Make some tests work on Windows/MSVC. | Chris Wilson | 2015-12-13 |
| | | |||
| * | Move reusable code out of bin directories. | Chris Wilson | 2015-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 Wilson | 2015-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 Wilson | 2015-12-13 |
| | | |||
| * | Define TEST_EXECUTABLE to allow it to have different names on MSVC/CMake. | Chris Wilson | 2015-12-13 |
| | | |||
* | | Add some little string functions to Utils.cpp. | Chris Wilson | 2015-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 appveyor | Chris Wilson | 2015-12-12 |
|\ \ | | | | | | | | | | Some local commits were not pushed before, sorry. | ||
| * | | Define TEST_EXECUTABLE to allow it to have different names on MSVC/CMake. | Chris Wilson | 2015-12-12 |
| | | | |||
| * | | Add a getpid() emulation for test/bbackupd on MSVC | Chris Wilson | 2015-12-12 |
| |/ | |||
* | | Merge branch 'appveyor' of github.com:boxbackup/boxbackup into appveyor | Chris Wilson | 2015-12-10 |
|\| | |||
| * | Fix another use of a non-standard BSD variable. | Chris Wilson | 2015-12-09 |
| | |