[PATCH] domaincapstest: Return EXIT_SUCCESS / EXIT_FAILURE instead of -1

Peter Krempa posted 1 patch 3 years, 1 month ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/f1380d071ca7762ff94a53ceb07335bb2c6b77f6.1615290895.git.pkrempa@redhat.com
tests/domaincapstest.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] domaincapstest: Return EXIT_SUCCESS / EXIT_FAILURE instead of -1
Posted by Peter Krempa 3 years, 1 month ago
The value is used as return value for the process itself.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
---
 tests/domaincapstest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/domaincapstest.c b/tests/domaincapstest.c
index 7a082705c6..65d9f4c635 100644
--- a/tests/domaincapstest.c
+++ b/tests/domaincapstest.c
@@ -475,7 +475,7 @@ mymain(void)
     DO_TEST_BHYVE("fbuf", "/usr/sbin/bhyve", &bhyve_caps, VIR_DOMAIN_VIRT_BHYVE);
 #endif /* WITH_BHYVE */

-    return ret;
+    return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
 }

 #if WITH_QEMU
-- 
2.29.2