todo: Add note about using blktrace.
[libguestfs.git] / capitests / test-command.c
index 7a3e64b..c23b7d1 100644 (file)
@@ -26,8 +26,7 @@
 #include <string.h>
 #include <unistd.h>
 
-/* Get STREQ etc */
-#include "../src/guestfs-internal.h"
+#define STREQ(a,b) (strcmp((a),(b)) == 0)
 
 int
 main (int argc, char *argv[])
@@ -57,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);
 }