aboutsummaryrefslogtreecommitdiffstats
path: root/src/selftest/selftest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/selftest/selftest.cpp')
-rw-r--r--src/selftest/selftest.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/selftest/selftest.cpp b/src/selftest/selftest.cpp
index 2f6bea4cd..d1fdd03b0 100644
--- a/src/selftest/selftest.cpp
+++ b/src/selftest/selftest.cpp
@@ -19,12 +19,14 @@ namespace {
*/
bool test_filter_kat(Filter* filter,
const std::string& input,
- const std::string& output)
+ const std::string& expected_output)
{
Pipe pipe(new Hex_Decoder, filter, new Hex_Encoder);
pipe.process_msg(input);
- return (output == pipe.read_all_as_string());
+ std::string output = pipe.read_all_as_string();
+
+ return (output == expected_output);
}
}