From b03b93099d0a8c09acfd14b250d9138e70a97a2b Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Tue, 20 Jun 2017 12:11:16 +0200 Subject: [PATCH] allow to give only a part as parameter to `./test` --- tests/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test.c b/tests/test.c index f0d5c7c..785617b 100644 --- a/tests/test.c +++ b/tests/test.c @@ -351,7 +351,7 @@ int main(int argc, char **argv) dur = epoch_usec(); for (i = 0; i < sizeof(test_functions)/sizeof(test_functions[0]); ++i) { - if (single_test && strcmp(test_functions[i].name, single_test)) { + if (single_test && strstr(test_functions[i].name, single_test) == NULL) { continue; } dots = fn_len - strlen(test_functions[i].name);