capitests: Add the code to test (proposed) add-libvirt-dom C API.
[libguestfs.git] / capitests / test-command.c
index c43353d..c23b7d1 100644 (file)
@@ -26,6 +26,8 @@
 #include <string.h>
 #include <unistd.h>
 
+#define STREQ(a,b) (strcmp((a),(b)) == 0)
+
 int
 main (int argc, char *argv[])
 {
@@ -54,12 +56,12 @@ main (int argc, char *argv[])
       printf ("Result11-1\nResult11-2");
     } else {
       fprintf (stderr, "unknown parameter: %s\n", argv[1]);
-      exit (1);
+      exit (EXIT_FAILURE);
     }
   } else {
     fprintf (stderr, "missing parameter\n");
-    exit (1);
+    exit (EXIT_FAILURE);
   }
 
-  exit (0);
+  exit (EXIT_SUCCESS);
 }