git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
capitests: Don't open test files with O_NONBLOCK.
[libguestfs.git]
/
generator
/
generator_capitests.ml
diff --git
a/generator/generator_capitests.ml
b/generator/generator_capitests.ml
index
707d59b
..
6f5f59c
100644
(file)
--- 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\";
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);
if (fd == -1) {
perror (filename);
exit (EXIT_FAILURE);
@@
-204,7
+204,7
@@
int main (int argc, char *argv[])
}
filename = \"test2.img\";
}
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);
if (fd == -1) {
perror (filename);
exit (EXIT_FAILURE);
@@
-232,7
+232,7
@@
int main (int argc, char *argv[])
}
filename = \"test3.img\";
}
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);
if (fd == -1) {
perror (filename);
exit (EXIT_FAILURE);