summaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-11-03 17:34:27 +0000
committerRichard W.M. Jones <rjones@redhat.com>2010-11-03 17:44:30 +0000
commitec0fe45e48fa4621fc6fa0f5bcc44f184068c86f (patch)
tree1933cb87bfc71e8ae1e306b82e267933671db40d /generator
parent2a33d81e2b7fa2affaaad48538307c818b4a8260 (diff)
downloadlibguestfs-ec0fe45e48fa4621fc6fa0f5bcc44f184068c86f.tar.gz
libguestfs-ec0fe45e48fa4621fc6fa0f5bcc44f184068c86f.tar.xz
libguestfs-ec0fe45e48fa4621fc6fa0f5bcc44f184068c86f.zip
capitests: Don't open test files with O_NONBLOCK.
I have no idea why we were doing this.
Diffstat (limited to 'generator')
-rw-r--r--generator/generator_capitests.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/generator/generator_capitests.ml b/generator/generator_capitests.ml
index 707d59b7..6f5f59c7 100644
--- a/generator/generator_capitests.ml
+++ b/generator/generator_capitests.ml
@@ -176,7 +176,7 @@ int main (int argc, char *argv[])
guestfs_set_error_handler (g, print_error, NULL);
filename = \"test1.img\";
- fd = open (filename, O_WRONLY|O_CREAT|O_NOCTTY|O_NONBLOCK|O_TRUNC, 0666);
+ fd = open (filename, O_WRONLY|O_CREAT|O_NOCTTY|O_TRUNC, 0666);
if (fd == -1) {
perror (filename);
exit (EXIT_FAILURE);
@@ -204,7 +204,7 @@ int main (int argc, char *argv[])
}
filename = \"test2.img\";
- fd = open (filename, O_WRONLY|O_CREAT|O_NOCTTY|O_NONBLOCK|O_TRUNC, 0666);
+ fd = open (filename, O_WRONLY|O_CREAT|O_NOCTTY|O_TRUNC, 0666);
if (fd == -1) {
perror (filename);
exit (EXIT_FAILURE);
@@ -232,7 +232,7 @@ int main (int argc, char *argv[])
}
filename = \"test3.img\";
- fd = open (filename, O_WRONLY|O_CREAT|O_NOCTTY|O_NONBLOCK|O_TRUNC, 0666);
+ fd = open (filename, O_WRONLY|O_CREAT|O_NOCTTY|O_TRUNC, 0666);
if (fd == -1) {
perror (filename);
exit (EXIT_FAILURE);