]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vircapstest: Properly report error for failed tests
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 23 Jun 2015 11:05:01 +0000 (13:05 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 24 Jun 2015 11:47:05 +0000 (13:47 +0200)
commit82285d5290b85d2ce4c6e5ee8dc70dd6d79827a1
tree9e0de33685c28d0df8a91bb66013c5e8eb671490
parent13c59ac906b08ae74f520593d5ccf2dc65231c18
vircapstest: Properly report error for failed tests

There are two macros used in the test: CAPSCOMP and CAPS_EXPECT_ERR.
Both run a test case and if a failure occurred, they set the @ret
variable to a value of -1 to indicate an error. Well, that's what they
should do. Due to a typo, they set the variable to a positive one
effectively masking any failed test.

Then, we have couple of tests failing. Fix them too.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tests/vircapstest.c