Skip to content
Snippets Groups Projects
Commit 1e3d3c52 authored by Brad King's avatar Brad King
Browse files

TestDriver: Avoid declaring local variable after statement

Move a declaration added by commit 3f6ff4b5 (create_test_sourcelist:
add test driver option to run all tests, 2021-04-27, v3.21.0-rc1~257^2)
into its own scope.
parent 117b1545
No related branches found
No related tags found
Loading
......@@ -136,9 +136,11 @@ int main(int ac, char* av[])
t = clock();
status = (*cmakeGeneratedFunctionMapEntries[i].func)(ac, av);
t = clock() - t;
double time_taken = ((double)t) / CLOCKS_PER_SEC;
status_message = (status == -1) ? "not ok" : "ok";
printf("%s %d %s # %f\n", status_message, i + 1, name, time_taken);
{
double time_taken = ((double)t) / CLOCKS_PER_SEC;
printf("%s %d %s # %f\n", status_message, i + 1, name, time_taken);
}
}
printf("All tests finished.\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment