From a661f7f54cef34aa39894818568a2c1b462e8cbc Mon Sep 17 00:00:00 2001 From: Nithya Balachandran Date: Tue, 5 May 2015 23:47:58 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/10590 Tested-by: Gluster Build System Tested-by: NetBSD Build System Reviewed-by: Raghavendra G Tested-by: Raghavendra G --- tests/bugs/nfs/bug-1210338.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/bugs/nfs') 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], -- cgit