diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libopkg_test.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/libopkg_test.c b/tests/libopkg_test.c index b834a7f..9146d0c 100644 --- a/tests/libopkg_test.c +++ b/tests/libopkg_test.c @@ -1,15 +1,19 @@ #include <opkg.h> - +#include <stdlib.h> int main (int argc, char **argv) { opkg_t *opkg; + int err; opkg = opkg_new (); opkg_set_option (opkg, "offline_root", "/tmp/"); + err = opkg_update_package_lists (opkg); + + printf ("opkg_update_package_lists returned %d\n", err); opkg_free (opkg); } |