C-Thread-Pool/tests/heap_stack_garbage.sh

27 lines
480 B
Bash
Raw Normal View History

#! /bin/bash
#
# This file tests for possible bugs
#
. funcs.sh
# ---------------------------- Tests -----------------------------------
function test_with_nonzero_heap_and_stack {
compile src/nonzero_heap_stack.c
2015-03-12 22:16:27 +03:00
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"