]> git.ipfire.org Git - thirdparty/libvirt.git/commit
test: Fix actual vs. expected in virtTestCompareFiles v1.2.15-rc1
authorLaine Stump <laine@laine.org>
Mon, 27 Apr 2015 17:43:06 +0000 (13:43 -0400)
committerLaine Stump <laine@laine.org>
Mon, 27 Apr 2015 19:12:23 +0000 (15:12 -0400)
commitdcbedfa67229b5ef6c203c385bf9813f85ac8180
tree02c682dd5894f4b09945fa243cb91b6b35472973
parentd8082d2d44f238d0ef2e4ad830e5b7acf1c02185
test: Fix actual vs. expected in virtTestCompareFiles

Commit ca329299 added a utility function virtTestCompareFiles() to
eliminate repetitive code in several test programs. It unfortunately
calls virtTestDifference() with the arguments in the wrong order -
strcontent is the "actual" output gathered by the test rig, while
filecontent is the "expected", and virtTestDifference() wants expected
(filecontent) followed by actual (strcontent), but
virtTestCompareFiles() does the opposite, which can make the output a
bit confusing when there is a failure.
tests/testutils.c