diff options
| author | Amar Tumballi <amarts@redhat.com> | 2019-07-25 11:00:29 +0530 |
|---|---|---|
| committer | Amar Tumballi <amarts@redhat.com> | 2019-07-31 00:53:11 +0000 |
| commit | 7124fc6d01aa23e9a218d0ce608242d0ae320193 (patch) | |
| tree | e6d2b75927e9562baf26d6f727e6008db0e79afe /tests/basic/gfapi/glfsxmp.t | |
| parent | a31fad885c30cbc1bea652349c7d52bac1414c08 (diff) | |
gfapi: increase function-coverage
* Add few more mgmt functions to the coverage
* While testing mgmt function, found an issue, where if the
'glfs_set_volfile_server()' is not called before calling
'glfs_unset_volfile_server()', unset would cause a crash.
Null check of few variables fixes the issue, which is handled
in this patch itself.
* Added a test for volfile API
Updates: bz#1693692
Change-Id: Iba151f8da1b64107e2f436ddbfef9da45b1c1588
Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'tests/basic/gfapi/glfsxmp.t')
| -rw-r--r-- | tests/basic/gfapi/glfsxmp.t | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/basic/gfapi/glfsxmp.t b/tests/basic/gfapi/glfsxmp.t index 4f0d90d059f..b3e6645c0f5 100644 --- a/tests/basic/gfapi/glfsxmp.t +++ b/tests/basic/gfapi/glfsxmp.t @@ -13,9 +13,14 @@ EXPECT 'Created' volinfo_field $V0 'Status' TEST $CLI volume start $V0 EXPECT 'Started' volinfo_field $V0 'Status' +$CLI system getspec $V0 > fubar.vol + TEST cp $(dirname $0)/glfsxmp-coverage.c ./glfsxmp.c TEST build_tester ./glfsxmp.c -lgfapi TEST ./glfsxmp $V0 $H0 + +TEST ./glfsxmp fubar.vol + TEST cleanup_tester ./glfsxmp TEST rm ./glfsxmp.c |
