]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- fixed result creation
authorArvin Schnell <aschnell@suse.de>
Thu, 31 Jan 2013 13:28:28 +0000 (14:28 +0100)
committerArvin Schnell <aschnell@suse.de>
Thu, 31 Jan 2013 13:28:28 +0000 (14:28 +0100)
testsuite-cmp/cmp.cc

index 73581915a1005607854b3686522d54189f80277e..d464f16dd62532c4be6fdd27b571575402d97248 100644 (file)
@@ -20,7 +20,7 @@ struct helper
        : result(result) {}
     void operator()(const string& name, unsigned int status)
        { result.push_back(name + " " + statusToString(status)); }
-    vector<string> result;
+    vector<string>& 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;
 }