Move C API tests out of root build dir into 'capitests' subdir.
[libguestfs.git] / capitests / tests.c
similarity index 99%
rename from tests.c
rename to capitests/tests.c
index 11bd2a5..5d94598 100644 (file)
--- a/tests.c
@@ -15699,10 +15699,7 @@ int main (int argc, char *argv[])
 
   guestfs_set_error_handler (g, print_error, NULL);
 
-  srcdir = getenv ("srcdir");
-  if (!srcdir) srcdir = ".";
-  chdir (srcdir);
-  guestfs_set_path (g, "appliance");
+  guestfs_set_path (g, "../appliance");
 
   filename = "test1.img";
   fd = open (filename, O_WRONLY|O_CREAT|O_NOCTTY|O_NONBLOCK|O_TRUNC, 0666);