diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-11-06 22:23:56 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-11-06 22:23:56 +0000 |
commit | 7b9d0f3cba4efb3d9371ea5c6a8771d582e20e9f (patch) | |
tree | 0c795b1ca4312b220f038e9da9059301c089c2ce /test | |
parent | 322a8c4719e54e637533593faaa9a82cd92a6f40 (diff) |
Add some debugging for a keepalive timer test failure reported by
Matt Brown <matt@mbrown.co.uk> on 2007-11-06.
Diffstat (limited to 'test')
-rw-r--r-- | test/bbackupd/testbbackupd.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/bbackupd/testbbackupd.cpp b/test/bbackupd/testbbackupd.cpp index 4b00d3f4..16932f0f 100644 --- a/test/bbackupd/testbbackupd.cpp +++ b/test/bbackupd/testbbackupd.cpp @@ -975,8 +975,14 @@ int test_bbackupd() comp = "Send StoreFile(0x3,"; TEST_THAT(line.substr(0, comp.size()) == comp); comp = ",0x0,\"f1\")"; - TEST_THAT(line.substr(line.size() - comp.size()) - == comp); + std::string sub = line.substr(line.size() - comp.size()); + + TEST_THAT(sub == comp); + if (sub != comp) + { + printf("Expected <%s> but found <%s>\n", + comp.to_s, sub.to_s); + } } intercept_setup_readdir_hook("testfiles/TestDir1/spacetest/d1", |