From 2c0cbb392a21502ef79414bea72453962ec9110d Mon Sep 17 00:00:00 2001 From: lloyd Date: Wed, 23 Dec 2009 20:22:10 +0000 Subject: Tweak for easier debugging --- src/selftest/selftest.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/selftest/selftest.cpp b/src/selftest/selftest.cpp index 61f9c5571..291643f2c 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); } } -- cgit v1.2.3