mirror of
https://github.com/Pithikos/C-Thread-Pool
synced 2024-11-25 06:49:37 +03:00
27 lines
480 B
Bash
Executable File
27 lines
480 B
Bash
Executable File
#! /bin/bash
|
|
|
|
#
|
|
# This file tests for possible bugs
|
|
#
|
|
|
|
. funcs.sh
|
|
|
|
|
|
# ---------------------------- Tests -----------------------------------
|
|
|
|
function test_with_nonzero_heap_and_stack {
|
|
compile src/nonzero_heap_stack.c
|
|
echo "Testing for non-zero heap and stack"
|
|
output=$(timeout 1 ./test)
|
|
if [[ $? != 0 ]]; then
|
|
err "Fail running on nonzero heap and stack" "$output"
|
|
exit 1
|
|
fi
|
|
}
|
|
|
|
|
|
# Run tests
|
|
test_with_nonzero_heap_and_stack
|
|
|
|
echo "No errors"
|