diff options
| author | Rajesh Joseph <rjoseph@redhat.com> | 2016-09-14 06:08:39 +0530 |
|---|---|---|
| committer | Raghavendra Talur <rtalur@redhat.com> | 2016-09-21 03:18:32 -0700 |
| commit | d4e16452c82fcf6a71292aa91f5d7424a31b7b0f (patch) | |
| tree | 90b07a00b1d6bb28f1a26033bd00a5aadab556bd /tests/basic/gfapi/libgfapi-fini-hang.c | |
| parent | e9478b620fbcbc2bdca9e8a34e5b47e93926f0d2 (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>
Bug: 1375990
Change-Id: I87f6c7d20959e2d4bbe8c064767a9fed004e8c4a
Signed-off-by: Rajesh Joseph <rjoseph@redhat.com>
Reviewed-on: http://review.gluster.org/15499
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/libgfapi-fini-hang.c')
| -rw-r--r-- | tests/basic/gfapi/libgfapi-fini-hang.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/tests/basic/gfapi/libgfapi-fini-hang.c b/tests/basic/gfapi/libgfapi-fini-hang.c index ee16bd7ce58..81b065ca924 100644 --- a/tests/basic/gfapi/libgfapi-fini-hang.c +++ b/tests/basic/gfapi/libgfapi-fini-hang.c @@ -2,12 +2,11 @@ #include <unistd.h> #include <time.h> #include <limits.h> -#include <alloca.h> #include <string.h> #include <stdio.h> #include <stdlib.h> -#include "api/glfs.h" -#include "api/glfs-handles.h" +#include <glusterfs/api/glfs.h> +#include <glusterfs/api/glfs-handles.h> #define LOG_ERR(func, ret) do { \ if (ret != 0) { \ @@ -26,21 +25,26 @@ main (int argc, char *argv[]) glfs_fd_t *fd = NULL; char readbuf[32]; char *filename = "a1"; + char *hostname = NULL; + char *volname = NULL; fprintf (stderr, "Starting libgfapi_fini\n"); - if (argc < 2) { + if (argc < 3) { fprintf (stderr, "Invalid argument\n"); exit(1); } - fs = glfs_new (argv[1]); + hostname = argv[1]; + volname = argv[2]; + + fs = glfs_new (volname); if (!fs) { fprintf (stderr, "glfs_new: returned NULL\n"); exit(1); } - ret = glfs_set_volfile_server (fs, "tcp", "localhost", 0); + ret = glfs_set_volfile_server (fs, "tcp", hostname, 0); LOG_ERR("glfs_set_volfile_server", ret); ret = glfs_set_logging (fs, "/dev/stderr", 7); |
