make allocation counter test fail on error in subshell (#262)
Motivation: In shell, subshells don't inherit the shell flags (such as `set -eu`) and therefore need to set them again. The allocation counter test uses a subshell but forgot to `set -eu` in the subshell. Modifications: `set -eu` in the subshell for the allocation counter tests. Result: if there's an error building the test program the test now fails.
This commit is contained in:
parent
17c511464d
commit
fee0b6199e
|
@ -22,6 +22,7 @@ cp -R "test_01_resources/template"/* "$tmp/"
|
|||
nio_root="$PWD/../.."
|
||||
|
||||
(
|
||||
set -eu
|
||||
cd "$tmp"
|
||||
|
||||
function make_git_commit_all() {
|
||||
|
|
Loading…
Reference in New Issue