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/upcall-cache-invalidate.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/upcall-cache-invalidate.c')
-rw-r--r-- | tests/basic/gfapi/upcall-cache-invalidate.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/basic/gfapi/upcall-cache-invalidate.c b/tests/basic/gfapi/upcall-cache-invalidate.c index deec691bf8e..ea1b5c4a88b 100644 --- a/tests/basic/gfapi/upcall-cache-invalidate.c +++ b/tests/basic/gfapi/upcall-cache-invalidate.c @@ -2,7 +2,6 @@ #include <unistd.h> #include <time.h> #include <limits.h> -#include <alloca.h> #include <string.h> #include <stdio.h> #include <stdlib.h> @@ -41,17 +40,19 @@ main (int argc, char *argv[]) struct glfs_callback_arg cbk; char *logfile = NULL; char *volname = NULL; + char *hostname = NULL; struct glfs_callback_inode_arg *in_arg = NULL; cbk.reason = 0; - if (argc != 3) { + if (argc != 4) { fprintf (stderr, "Invalid argument\n"); exit(1); } - volname = argv[1]; - logfile = argv[2]; + hostname = argv[1]; + volname = argv[2]; + logfile = argv[3]; fs = glfs_new (volname); if (!fs) { @@ -59,7 +60,7 @@ main (int argc, char *argv[]) return -1; } - ret = glfs_set_volfile_server (fs, "tcp", "localhost", 24007); + ret = glfs_set_volfile_server (fs, "tcp", hostname, 24007); LOG_ERR("glfs_set_volfile_server", ret); ret = glfs_set_logging (fs, logfile, 7); @@ -74,7 +75,7 @@ main (int argc, char *argv[]) return 1; } - ret = glfs_set_volfile_server (fs2, "tcp", "localhost", 24007); + ret = glfs_set_volfile_server (fs2, "tcp", hostname, 24007); LOG_ERR("glfs_set_volfile_server-fs2", ret); ret = glfs_set_logging (fs2, logfile, 7); |