stop the segfault when an invalid api is specified in configfile

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

View File

@ -1184,6 +1184,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)