summaryrefslogtreecommitdiffstats
path: root/tests/bugs/nfs/bug-1210338.c
diff options
context:
space:
mode:
authorNithya Balachandran <nbalacha@redhat.com>2015-05-07 14:45:26 +0530
committerVijay Bellur <vbellur@redhat.com>2015-05-09 00:23:30 -0700
commit9fee35681c5803e6badb2509f8d7c151aa174fda (patch)
tree390fe9f1edf42bb91d6031b4911216c611730567 /tests/bugs/nfs/bug-1210338.c
parente925b241d97cc5c5a4ed158e1229a8191f83abc7 (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: 1218940 Signed-off-by: Nithya Balachandran <nbalacha@redhat.com> Reviewed-on: http://review.gluster.org/10590 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Raghavendra G <rgowdapp@redhat.com> Tested-by: Raghavendra G <rgowdapp@redhat.com> (cherry picked from commit a661f7f54cef34aa39894818568a2c1b462e8cbc) Signed-off-by: Nithya Balachandran <nbalacha@redhat.com> Reviewed-on: http://review.gluster.org/10627 Tested-by: NetBSD Build System Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests/bugs/nfs/bug-1210338.c')
-rw-r--r--tests/bugs/nfs/bug-1210338.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bugs/nfs/bug-1210338.c b/tests/bugs/nfs/bug-1210338.c
index 77f56eb9d0b..7a17b9d68ce 100644
--- a/tests/bugs/nfs/bug-1210338.c
+++ b/tests/bugs/nfs/bug-1210338.c
@@ -14,7 +14,7 @@ main (int argc, char *argv[])
int ret = -1;
int fd = -1;
- fd = open (argv[1], O_CREAT|O_EXCL);
+ fd = open (argv[1], O_CREAT|O_EXCL, 0644);
if (fd == -1) {
fprintf (stderr, "creation of the file %s failed (%s)\n", argv[1],