A case added by commit 39ac8b4eb5 (ctest: Add --repeat-after-timeout option, 2019-10-29) includes a success-case timeout of 2 seconds. That is too short when running under valgrind, so extend it to 5 seconds.
39ac8b4eb5
Add an option to re-run tests if they timeout. This will help tolerate sporadic timeouts on busy machines.