stop the segfault when an invalid api is specified in configfile

master
Glenn K. Lockwood 2018-10-05 23:29:21 -07:00
parent acee84bedc
commit a0ef65e61f
1 changed files with 3 additions and 0 deletions

View File

@ -1231,6 +1231,9 @@ static void TestIoSys(IOR_test_t *test)
/* bind I/O calls to specific API */
backend = aiori_select(params->api);
if (backend == NULL)
ERR_SIMPLE("unrecognized I/O API");
/* show test setup */
if (rank == 0 && verbose >= VERBOSE_0)