mirror of
https://github.com/Pithikos/C-Thread-Pool
synced 2024-11-21 21:21:23 +03:00
Assure valgrind is installed before running tests
This commit is contained in:
parent
55fb89164c
commit
a4a0f3b725
@ -5,6 +5,14 @@
|
||||
# want to use any of the functions
|
||||
#
|
||||
|
||||
function assure_installed_valgrind {
|
||||
valgrind --version &> /dev/null
|
||||
if (( $? != 0 )); then
|
||||
msg="Valgrind seems to not be installed."
|
||||
err "$msg" "$msg"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
function needle { #needle #haystack
|
||||
python -c "import re; print(re.search(r'$1', '$2').group(0))"
|
||||
|
@ -55,6 +55,7 @@ function test_thread_free_multi { #threads #times
|
||||
|
||||
|
||||
# Run tests
|
||||
assure_installed_valgrind
|
||||
test_thread_free 1
|
||||
test_thread_free 2
|
||||
test_thread_free 4
|
||||
|
Loading…
Reference in New Issue
Block a user