| Commit message (Collapse) | Author | Age |
|
|
|
|
|
| |
change default syslog facility from LOG_LOCAL6 to LOG_DAEMON
Gbp-Pq: Name 03-adjust-syslog-facility.diff
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
Should hopefully reduce random failures of timing-dependent tests which
rely on subsecond precision for accuracy.
(cherry picked from commit c845b2e39fffeb560983a301d810616a6495469d)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
GetErrorMessage() already includes the error number in the text string that
it returns, so we don't need to include it again.
|
|
|
|
|
| |
I think something is on the PATH in Appveyor that makes rmdir /s/q fail,
especially when run through Perl.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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 'master' of https://github.com/agrandville/boxbackup into appveyor
|
| | |
|
| |
| |
| |
| |
| |
| | |
u_int8_t is unsigned char
strings.h file is missing
errors generated by deprecated functions are now hidden (C4996 warning)
|
| |\ |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
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.
|
| |/ |
|
|/
|
|
|
|
|
| |
MSVC doesn't like them, and they're not necessary now that we have stdint.h.
Remove some compatibility typedefs from BoxPlatform.h and emu.h which are not
needed any longer either.
|
| |
|
|
|
|
|
|
| |
Otherwise, if we fail to unlink the lockfile, we will try to close it again,
which will fail because it's already closed, and we'll never get around to
unlinking it.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Allows it to be used by S3Store, or in fact anything that uses Configuration.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Refactor all common code from testbbackupd and testbackupstore to allow other
test suites to contain multiple tests and execute selected tests more easily.
Report all test results within a suite in a standard, easy to read summary.
|
| |
|
|
|
|
|
| |
If the item is not present (the end of the Archive is reached instead) then a
default value is returned instead of throwing an exception.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
| |
with it.
|
|
|
|
|
| |
Allows the exception message to be captured before it goes out of scope.
|
| |
|
|
|
|
|
| |
NamedLock simply didn't work before. This may cause test failures, but the
tests are already failing on Windows, and must be fixed.
|