diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-06-22 12:57:14 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-06-28 09:09:42 +0100 |
commit | 1831b6b4cf7ac313eb86b260d7eb6d1f7657d16d (patch) | |
tree | c9b0ecc8c506c8aac4a1104c9abdcec80108cf66 | |
parent | 56e77e9ca00b90bf9054fc544ed1363a417a73f2 (diff) | |
download | libguestfs-1831b6b4cf7ac313eb86b260d7eb6d1f7657d16d.tar.gz libguestfs-1831b6b4cf7ac313eb86b260d7eb6d1f7657d16d.tar.xz libguestfs-1831b6b4cf7ac313eb86b260d7eb6d1f7657d16d.zip |
tests: Fix broken workarounds for missing O_CLOEXEC.
(cherry picked from commit 35882ba97722ddf9b4c55a332961b08ad8240dd7)
-rw-r--r-- | tests/c-api/test-last-errno.c | 2 | ||||
-rw-r--r-- | tests/c-api/test-user-cancel.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/c-api/test-last-errno.c b/tests/c-api/test-last-errno.c index ab4479be..49ec556d 100644 --- a/tests/c-api/test-last-errno.c +++ b/tests/c-api/test-last-errno.c @@ -32,7 +32,7 @@ #include "guestfs.h" #ifndef O_CLOEXEC -#define O_CLOEXEC +#define O_CLOEXEC 0 #endif int diff --git a/tests/c-api/test-user-cancel.c b/tests/c-api/test-user-cancel.c index 1ae30c3d..fa860f5d 100644 --- a/tests/c-api/test-user-cancel.c +++ b/tests/c-api/test-user-cancel.c @@ -47,7 +47,7 @@ #include "guestfs.h" #ifndef O_CLOEXEC -#define O_CLOEXEC +#define O_CLOEXEC 0 #endif static const char *filename = "test.img"; |