summaryrefslogtreecommitdiffstats
path: root/src/test/test_rbd_replay.cc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* test/test_rbd_replay: move operator<<(..rbd_loc& name) to rbd_replayKefu Chai2021-01-081-2/+4
| | | | | | | | | so gtest can print out rbd_loc when printing out diagnostic information when test fails. after moving operator<<(ostream&, const rbd_loc&) to the `rbd_replay` namespace, ADL is able to find it. for more details on the lookup rules, see https://en.cppreference.com/w/cpp/language/adl Signed-off-by: Kefu Chai <kchai@redhat.com>
* tests: removed obsolete rbd_replay test casesJason Dillaman2015-10-081-91/+0
| | | | Signed-off-by: Jason Dillaman <dillaman@redhat.com>
* test_rbd_replay.cc: fix va_list parameter handlingDanny Al-Gaaf2014-10-271-12/+12
| | | | | | | | | Fix for: [src/test/test_rbd_replay.cc:193]: (portability) Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
* rbd: fix signess warningLoic Dachary2014-08-251-10/+10
| | | | Signed-off-by: Loic Dachary <loic-201408@dachary.org>
* rbd_replay: Add unit test for batch_unreachable_fromAdam Crume2014-08-211-2/+58
| | | | | | | This requires a fair amount of code reorganization, since the types in the function signature were previously not in a header file. Signed-off-by: Adam Crume <adamcrume@gmail.com>
* rbd-replay: Add unit test for SerAdam Crume2014-08-211-0/+18
| | | | Signed-off-by: Adam Crume <adamcrume@gmail.com>
* rbd-replay: Fix compiler warning in unit testsAdam Crume2014-08-211-24/+24
| | | | | | | | | | Was getting: test/test_rbd_replay.cc:44:3: warning: converting ‘false’ to pointer type for argument 1 of ‘char testing::internal::IsNullLiteralHelper(testing::internal::Secret*)’ [-Wconversion-null] Fixed by changing EXPECT_EQ(false, xxx) to EXPECT_FALSE(xxx). For completeness, also changed EXPECT_EQ(true, xxx) to EXPECT_TRUE(xxx). Signed-off-by: Adam Crume <adamcrume@gmail.com>
* rbd-replay: Switch ImageNameMap from regex to plain string matchingAdam Crume2014-08-211-36/+14
| | | | Signed-off-by: Adam Crume <adamcrume@gmail.com>
* rbd-replay: Switch ImageNameMap to using rbd_locAdam Crume2014-08-211-13/+12
| | | | Signed-off-by: Adam Crume <adamcrume@gmail.com>
* rbd-replay: Add rbd_replay::rbd_locAdam Crume2014-08-211-0/+79
| | | | Signed-off-by: Adam Crume <adamcrume@gmail.com>
* rbd-replay: Use standard image@snap instead of image/snapAdam Crume2014-08-211-9/+9
| | | | Signed-off-by: Adam Crume <adamcrume@gmail.com>
* rbd-replay: Add unit testsAdam Crume2014-08-211-0/+95
Signed-off-by: Adam Crume <adamcrume@gmail.com>