From: Arvin Schnell Date: Thu, 31 Jan 2013 13:28:28 +0000 (+0100) Subject: - fixed result creation X-Git-Tag: v0.1.3~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dd4de7a8255876f637e7e876996757af29b8a39d;p=thirdparty%2Fsnapper.git - fixed result creation --- diff --git a/testsuite-cmp/cmp.cc b/testsuite-cmp/cmp.cc index 73581915..d464f16d 100644 --- a/testsuite-cmp/cmp.cc +++ b/testsuite-cmp/cmp.cc @@ -20,7 +20,7 @@ struct helper : result(result) {} void operator()(const string& name, unsigned int status) { result.push_back(name + " " + statusToString(status)); } - vector result; + vector& result; }; @@ -89,7 +89,7 @@ cmp(const string& fstype, const string& subvolume, unsigned int num1, unsigned i bool ok = result1 == result2; cout << fstype << " " << subvolume << " " << num1 << " " << num2 - << (ok ? " success" : " failure") << endl; + << (ok ? " ok" : " failure") << endl; return ok; }