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:
Johannes Weiß 2018-03-30 16:01:33 +01:00 committed by GitHub
parent 17c511464d
commit fee0b6199e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ cp -R "test_01_resources/template"/* "$tmp/"
nio_root="$PWD/../.."
(
set -eu
cd "$tmp"
function make_git_commit_all() {