| Commit message (Collapse) | Author | Age |
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Like HousekeepStoreAccount and BackupStoreCheck, throwing an exception during
the destructor will terminate the application in an "unusual way".
|
|
|
|
|
| |
Like HousekeepStoreAccount, throwing an exception during the destructor will
terminate the application in an "unusual way".
|
|
|
|
|
|
| |
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 the rmdir command instead of rm -rf.
|
| |
|
|\
| |
| |
| | |
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)
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| |/ |
|
|/
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Fixes compilation on Windows.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a new exception code to represent an object being completely missing (not
found on the store at all), separate from not being found in a particular
directory.
Improve mapping of server-side exceptions to protocol error messages returned
to the client.
Add handling for missing exceptions, such as
BackupStoreException::PatchChainInfoBadInDirectory, and the new
BackupStoreException::ObjectDoesNotExist.
Fix mapping for BackupStoreException::CouldNotFindEntryInDirectory to make it
distinguistable from BackupStoreException::ObjectDoesNotExist.
|
| |
|
| |
|
|
|
|
|
|
| |
The protocol command didn't succeed, it just returned a result with an
unexpected type, so make the failure message reflect that and give details
of the response actually received, to help with debugging.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
The new StartDaemon() and StopDaemon() in ServerControl.cpp/h are generic,
and used by StartClient() and StartServer() in StoreTestUtils.cpp/h.
|
|
|
|
|
| |
They can now be created using a constructor, and written to any IOStream.
Needed for writing them to an S3Store.
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Move common code into a base class, leaving bbstored-specific code.
Add skeleton of an S3 store type.
|
| |
|
|
|
|
|
|
| |
Once again, the Windows issue of being unable to delete or overwrite an
open file causes issues. In this case it's only test failures. We need to
be diligent about closing open file handles and protocol sessions in tests.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Deleting the account deletes the lockfile, so unlocking fails.
|
|
|
|
|
| |
Allows the exception message to be captured before it goes out of scope.
|
|
|
|
| |
Files need to be closed before renaming over them on Windows.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
The call to decrement the refcount was in an ASSERT macro, so compiled out in
release mode.
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|