summaryrefslogtreecommitdiffstats
path: root/tests/bugs/fuse
diff options
context:
space:
mode:
authorNithya Balachandran <nbalacha@redhat.com>2015-05-05 23:47:58 +0530
committerRaghavendra G <rgowdapp@redhat.com>2015-05-07 01:54:08 -0700
commita661f7f54cef34aa39894818568a2c1b462e8cbc (patch)
tree2243944fc8fc34f52895cce49909d2c679b4f833 /tests/bugs/fuse
parent2bd2ccf0fdd5390c1c07cb228048f93e5e516512 (diff)
tests: Spurious failure in fop-sanity.t
Modified the calls to open in fops-sanity.c to pass in the mode as well if flags includes O_CREAT (as per man page). The missing mode randomly caused T files to be created causing DHT to treat them as linkto files and fail the fop. Modified 2 other files where the mode was not being provided. Change-Id: I047573d43655b4957d0703f7df36238f7e729c1f BUG: 1218951 Signed-off-by: Nithya Balachandran <nbalacha@redhat.com> Reviewed-on: http://review.gluster.org/10590 Tested-by: Gluster Build System <jenkins@build.gluster.com> Tested-by: NetBSD Build System Reviewed-by: Raghavendra G <rgowdapp@redhat.com> Tested-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'tests/bugs/fuse')
-rw-r--r--tests/bugs/fuse/bug-1126048.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bugs/fuse/bug-1126048.c b/tests/bugs/fuse/bug-1126048.c
index 5b9afafef0f..60329955258 100644
--- a/tests/bugs/fuse/bug-1126048.c
+++ b/tests/bugs/fuse/bug-1126048.c
@@ -19,7 +19,7 @@ main (int argc, char **argv)
char *cmd = argv[1];
printf ("cmd is: %s\n", cmd);
- fd = open("a.txt", O_CREAT|O_RDWR);
+ fd = open("a.txt", O_CREAT|O_RDWR, 0644);
if (fd < 0)
printf ("open failed: %s\n", strerror(errno));