git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move C API tests out of root build dir into 'capitests' subdir.
[libguestfs.git]
/
capitests
/
tests.c
diff --git
a/tests.c
b/capitests/tests.c
similarity index 99%
rename from
tests.c
rename to
capitests/tests.c
index
11bd2a5
..
5d94598
100644
(file)
--- a/
tests.c
+++ b/
capitests/tests.c
@@
-15699,10
+15699,7
@@
int main (int argc, char *argv[])
guestfs_set_error_handler (g, print_error, NULL);
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);
filename = "test1.img";
fd = open (filename, O_WRONLY|O_CREAT|O_NOCTTY|O_NONBLOCK|O_TRUNC, 0666);