diff options
author | Poornima G <pgurusid@redhat.com> | 2016-06-17 01:27:31 -0400 |
---|---|---|
committer | Raghavendra Talur <rtalur@redhat.com> | 2016-07-20 23:15:55 -0700 |
commit | 0a8b85e3a8228c399dde807c3ca781a452a1fc90 (patch) | |
tree | 2c0d75324ef3bf2339c188929e4cfb9177e8f110 /tests/basic/gfapi/gfapi-dup.c | |
parent | dcf75f7dac091cdb8ab0af2e8f2ca30f6272f8d1 (diff) |
tests: Enable all gfapi test cases
Change-Id: I32bfec4af91348d96dc3e81a9d5c9cad599f821b
Bug: 1358594
Signed-off-by: Poornima G <pgurusid@redhat.com>
Reviewed-on: http://review.gluster.org/14748
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Smoke: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Raghavendra Talur <rtalur@redhat.com>
Diffstat (limited to 'tests/basic/gfapi/gfapi-dup.c')
-rw-r--r-- | tests/basic/gfapi/gfapi-dup.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/basic/gfapi/gfapi-dup.c b/tests/basic/gfapi/gfapi-dup.c index 450fbdc4186..96f133eae33 100644 --- a/tests/basic/gfapi/gfapi-dup.c +++ b/tests/basic/gfapi/gfapi-dup.c @@ -22,23 +22,25 @@ main (int argc, char *argv[]) glfs_fd_t *fd2 = NULL; char *volname = NULL; char *logfile = NULL; + char *hostname = NULL; const char *filename = "file_tmp"; const char *buff = "An opinion should be the result of thought, " "not a substitute for it."; - if (argc != 3) { + if (argc != 4) { fprintf (stderr, "Invalid argument\n"); return 1; } - volname = argv[1]; - logfile = argv[2]; + hostname = argv[1]; + volname = argv[2]; + logfile = argv[3]; fs = glfs_new (volname); if (!fs) VALIDATE_AND_GOTO_LABEL_ON_ERROR ("glfs_new", ret, out); - ret = glfs_set_volfile_server (fs, "tcp", "localhost", 24007); + ret = glfs_set_volfile_server (fs, "tcp", hostname, 24007); VALIDATE_AND_GOTO_LABEL_ON_ERROR ("glfs_set_volfile_server", ret, out); ret = glfs_set_logging (fs, logfile, 7); |