cyclic test running with gdb/valgrind

One may desire to run unit tests repeatedly in reveal unique thread scenarios. The following show example commands to use.

gdb

while gdb -ex "catch throw" -ex run -ex quit --args <application>; do sleep 0.5; done

valgrind

while valgrind --leak-check=full --error-exitcode=1 <application>; do :; done