Remove stray exit() in the regress test.
[oweals/opkg-lede.git] / tests / libopkg_test.c
index 720e3e9516e221c1c810c5246a40191747431e9b..31a22b0b51df2d7a16617be4d2b5a164e7ccbdf4 100644 (file)
@@ -1,9 +1,11 @@
-#include <opkg.h>
-#include <stdlib.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <libgen.h>
 
+#include <opkg.h>
+
+int opkg_state_changed;
 pkg_t *find_pkg = NULL;
 
 
@@ -150,7 +152,7 @@ main (int argc, char **argv)
   }
 
   setenv("OFFLINE_ROOT", "/tmp", 0);
+
   if (opkg_new ()) {
          printf("opkg_new() failed. This sucks.\n");
          print_error_list();
@@ -222,7 +224,7 @@ main (int argc, char **argv)
         }
       }
       break;
-          
+
     case 'r':
       if (argv[1][1] == 'e')
       {