test/app: add missed spdk_env_fini() or spdk_app_fini() when exiting

Change-Id: I9d511713277ea85d34e0a0e59b570fcbfa014fb1
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10911
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
Changpeng Liu 2021-12-29 20:25:26 +08:00 committed by Jim Harris
parent f2aa5435e9
commit e57252f98a
5 changed files with 8 additions and 1 deletions

View File

@ -1085,5 +1085,6 @@ main(int argc, char **argv)
rc = spdk_app_start(&opts, begin_iscsi_fuzz, NULL);
spdk_app_fini();
return rc;
}

View File

@ -430,5 +430,6 @@ main(int argc, char **argv)
rc = spdk_app_start(&opts, begin_fuzz, NULL);
spdk_app_fini();
return rc;
}

View File

@ -876,5 +876,6 @@ main(int argc, char **argv)
rc = spdk_app_start(&opts, begin_fuzz, NULL);
spdk_app_fini();
return rc;
}

View File

@ -1141,5 +1141,8 @@ main(int argc, char **argv)
}
}
spdk_app_start(&opts, begin_fuzz, NULL);
rc = spdk_app_start(&opts, begin_fuzz, NULL);
spdk_app_fini();
return rc;
}

View File

@ -98,5 +98,6 @@ main(int argc, char **argv)
printf("count = %ju\n", count);
spdk_histogram_data_free(h);
spdk_env_fini();
return rc;
}