summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-06-22 12:57:14 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-06-28 09:09:42 +0100
commit1831b6b4cf7ac313eb86b260d7eb6d1f7657d16d (patch)
treec9b0ecc8c506c8aac4a1104c9abdcec80108cf66
parent56e77e9ca00b90bf9054fc544ed1363a417a73f2 (diff)
downloadlibguestfs-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.c2
-rw-r--r--tests/c-api/test-user-cancel.c2
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";