Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Use FileModificationTime instead of raw stat() on Windows. | Chris Wilson | 2015-05-16 |
| | | | | | | | | | | | Fixes test failures caused by using seconds since epoch on Windows, instead of a box_time_t, and rounding it to the nearest 10^6, which is fine for a box_time_t (all other platforms), but 10^6 seconds is a rather long time to ignore changes for on Windows. This also makes it possible to support subsecond precision on Windows via FileModificationTime() in future, and have RaidFile detect such subsecond changes. | ||
* | Fix NamedLock release on Windows. | Chris Wilson | 2015-05-16 |
| | | | | | | On Windows we can't delete the file while it's open, and we don't need to, because we opened it for exclusive use, so another process can't lock it between us unlocking and deleting it. | ||
* | Fix missing account lock while checking for errors. | Chris Wilson | 2015-05-06 |
| | | | | | | | | | | | The old assertion, that the write lock file exists before starting checking, was erroneously passing before when no lock was held, because the lockfile was never deleted. Now that we delete it when unlocking the account, this started causing test failures. Changed the way that accounts are checked for errors to use a function that acquires a write lock first, and modified test to disconnect open clients before starting checking the account, to fix it. | ||
* | Fix lock race condition by unlinking before closing the file handle. | Chris Wilson | 2015-05-04 |
| | |||
* | Add extra logging for acquiring and releasing NamedLocks. | Chris Wilson | 2015-05-04 |
| | |||
* | Add command-line option to limit log messages to certain file(s). | Chris Wilson | 2015-05-04 |
| | | | | | E.g. you can run with -L NamedLock.cpp to only show messages logged in that file. You can also repeat it to only show messages from certain files. | ||
* | Fix minor test problem caused by not deleting a file between tests. | Chris Wilson | 2015-05-04 |
| | |||
* | Fix tests failing because they can't delete the lock file. | Chris Wilson | 2015-05-04 |
| | | | | Deleting the account deletes the lockfile, so unlocking fails. | ||
* | Define BOX_SOCKET_ERROR_MESSAGE, replace more BOX_LOG_SOCKET_ERROR calls ↵ | Chris Wilson | 2015-04-15 |
| | | | | with it. | ||
* | Use THROW_EXCEPTION_MESSAGE macro to save a message in exceptions. | Chris Wilson | 2015-04-15 |
| | |||
* | Add ability to run commands in context with TEST_CHECK_THROWS_AND_OR. | Chris Wilson | 2015-04-15 |
| | | | | | Allows the exception message to be captured before it goes out of scope. | ||
* | Add a static GetMessage() to get exception message for a known subtype code. | Chris Wilson | 2015-04-15 |
| | |||
* | Fix file locking on Windows. | Chris Wilson | 2015-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. | ||
* | Fix test failures caused by failure to commit the temporary refcount DB. | Chris Wilson | 2015-04-06 |
| | | | | Files need to be closed before renaming over them on Windows. | ||
* | Improve error logging in win32 emu library. | Chris Wilson | 2015-04-06 |
| | | | | | | Consistently capture the last Windows error code in the global variable winerrno. Add logging macros that report the Windows error message for this error code. | ||
* | Catch setitimer() failure, throw exceptions with descriptive messages in ↵ | Chris Wilson | 2015-04-06 |
| | | | | Timer.cpp. | ||
* | Whitespace and semicolon-after-macro fixes. | Chris Wilson | 2015-04-06 |
| | |||
* | Add missing timeouts to Archive reads. | Chris Wilson | 2015-04-06 |
| | | | | Allows Archive to be used safely on network streams. | ||
* | Fix crash when compiled in release mode caused by refcount not decrementing. | Chris Wilson | 2015-02-26 |
| | | | | | | The call to decrement the refcount was in an ASSERT macro, so compiled out in release mode. | ||
* | Fix BOX_SYSLOG macro to provide a category. | Chris Wilson | 2015-02-25 |
| | |||
* | Reduce verbosity of testcommon by hiding some log messages. | Chris Wilson | 2015-02-25 |
| | |||
* | Reduce test output noise by hiding some error messages in tests. | Chris Wilson | 2015-02-25 |
| | | | | | Should make the Travis logs shorter and more readable. | ||
* | Add test for hardlink handling. | Chris Wilson | 2015-01-04 |
| | |||
* | Don't redirect logging to stderr any more. | Chris Wilson | 2015-01-04 |
| | | | | | | We have more fine-grained control over logging now, including ability to log to a file in bbackupquery and all daemons, and users can't redirect stderr on Windows. https://www.boxbackup.org/ticket/50 | ||
* | Compile fix for MSVC (Visual Studio) 2010. | Chris Wilson | 2015-01-02 |
| | |||
* | Compile fix for loading BoxConfig.h in MinGW | Chris Wilson | 2015-01-02 |
| | |||
* | Add missing include file for PATH_MAX. | Chris Wilson | 2015-01-02 |
| | |||
* | Fix random timezone errors on restore. | Chris Wilson | 2015-01-02 |
| | | | | Work in UTC inside Box Backup, not local time. | ||
* | Remove unused variable | Chris Wilson | 2015-01-02 |
| | |||
* | Fix error logging when file open fails on Windows. | Chris Wilson | 2015-01-02 |
| | | | | | | We need to use the saved Windows error code from GetLastError(), rather than calling it again, because another system call has run in the mean time and GetLastError() will now return 0. | ||
* | Write memory leak report files to current working directory saved at startup. | Chris Wilson | 2015-01-02 |
| | | | | | | Fixes tests broken by changing current directory, for example in bbackupquery, which meant that the report file was written in the wrong place and couldn't be found by the test, causing a failure. | ||
* | Fix overlapped I/O in WinNamedPipeStream. | Chris Wilson | 2014-12-28 |
| | | | | Broken by previous changes to introduce overlapped I/O for writes. | ||
* | Whitespace and comment fixes. | Chris Wilson | 2014-12-28 |
| | | | | Improve correctness and reduce code duplication in bbackupctl. | ||
* | Improve debugging of named pipe operations and bbackupctl pipe interaction. | Chris Wilson | 2014-12-28 |
| | |||
* | Add missing timeouts on command socket writes. | Chris Wilson | 2014-12-28 |
| | |||
* | Add comment about reason for code duplication. | Chris Wilson | 2014-12-26 |
| | | | | | The mysterious case of the missing Write(const std::string&) in the night-time, or rather in subclasses of IOStream which declares it. | ||
* | Improve some exception messages in lib/raidfile. | Chris Wilson | 2014-12-26 |
| | | | | | Use the new macros to ensure that exceptions contain a message and filename, following the new standard format. | ||
* | Fix test failures caused by using plain stat() instead of emu_stat(). | Chris Wilson | 2014-12-26 |
| | | | | | | | On Windows, plain stat() no longer handles slashes in filenames correctly (since upgrading MinGW? Or switching to 64-bit Windows?). We need to use POSIX fstat() for now in RaidFile, but we can still use the emu_stat, and in fact we should, to fix path translation. | ||
* | Fix test failures caused by store path ending with slash on Windows. | Chris Wilson | 2014-12-26 |
| | |||
* | Add support for timeouts on named pipe writes, using overlapped I/O. | Chris Wilson | 2014-12-26 |
| | |||
* | Fix warning about HAVE_RANDOM_DEVICE not being defined. | Chris Wilson | 2014-12-26 |
| | |||
* | Fix MinGW64 compile error due to pointers being too large for uint32_t. | Chris Wilson | 2014-12-26 |
| | |||
* | Fix more compile errors on MinGW | Chris Wilson | 2014-12-26 |
| | |||
* | Replace sprintf() with snprintf(), fixes compile warnings on OpenBSD. | Chris Wilson | 2014-12-22 |
| | | | | | And compile errors on recent MinGW. | ||
* | Make memleakfinder_setup_exit_report() take a std::string, for C++ style. | Chris Wilson | 2014-12-22 |
| | |||
* | Replace Write(const char *) with Write(const std::string&). | Chris Wilson | 2014-12-22 |
| | | | | | This is better for C++ style and potential missing null termination. | ||
* | Fix compile error on OpenBSD due to invalid forward declarations of classes. | Chris Wilson | 2014-12-22 |
| | | | | | OpenBSD's compiler appears to be more sensitive than others. | ||
* | Add a TEST_LINE_OR macro to compare strings and execute a command if no equal. | Chris Wilson | 2014-12-21 |
| | |||
* | Allow writing a std::string to any SocketStream. | Chris Wilson | 2014-12-21 |
| | |||
* | Fix computation of fractional second part of ShortSleep(). | Chris Wilson | 2014-12-21 |
| | | | | | | | Reduce precision in log messages from microseconds to milliseconds. Log the amount of time actually slept in ShortSleep(). |