Site Tools


cyclic_test_running

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
cyclic_test_running.txt ยท Last modified: 2017/03/18 23:22 (external edit)

User Tools