summaryrefslogtreecommitdiffstats
path: root/tests
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-22 13:18:49 +0100
commit35882ba97722ddf9b4c55a332961b08ad8240dd7 (patch)
treee63ec8c745dad8f059986f889298694395ae5c27 /tests
parentef1514aa1e0a099d71cbb7d2c5f24f9f32e1939d (diff)
downloadlibguestfs-35882ba97722ddf9b4c55a332961b08ad8240dd7.tar.gz
libguestfs-35882ba97722ddf9b4c55a332961b08ad8240dd7.tar.xz
libguestfs-35882ba97722ddf9b4c55a332961b08ad8240dd7.zip
tests: Fix broken workarounds for missing O_CLOEXEC.
Diffstat (limited to 'tests')
-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";