diff options
author | Tristan Gingold <tgingold@free.fr> | 2023-01-15 09:44:59 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2023-01-15 11:36:07 +0100 |
commit | 97b9f0c7dfb61ceb924a9344a2e2b5dbba10e828 (patch) | |
tree | e9263f244a043c7195351c32569aa3229d056718 /testsuite | |
parent | c47c0bad5d2beaa55e1fb52e445f7b95174121f7 (diff) | |
download | ghdl-97b9f0c7dfb61ceb924a9344a2e2b5dbba10e828.tar.gz ghdl-97b9f0c7dfb61ceb924a9344a2e2b5dbba10e828.tar.bz2 ghdl-97b9f0c7dfb61ceb924a9344a2e2b5dbba10e828.zip |
testsuite/gna: adjust error detection in issue#687 for simul
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/gna/issue687/testsuite.sh | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/testsuite/gna/issue687/testsuite.sh b/testsuite/gna/issue687/testsuite.sh index 2c71a7534..07e58dab1 100755 --- a/testsuite/gna/issue687/testsuite.sh +++ b/testsuite/gna/issue687/testsuite.sh @@ -6,14 +6,18 @@ export GHDL_STD_FLAGS=--std=08 check_output() { - if ! grep -q "bound check failure" $1; then - echo "missing bound check failure" - exit 1 + if grep -q "bound check failure" $1; then + return 0 fi + if grep -q "mismatching vector length" $1; then + return 0 + fi + echo "missing bound check failure" + exit 1 } analyze ent.vhdl -elab_simulate_failure tb > tb.err +elab_simulate_failure tb > tb.err 2>&1 check_output tb.err clean @@ -24,19 +28,19 @@ elab_simulate tb clean analyze ent2.vhdl -elab_simulate_failure tb > tb.err +elab_simulate_failure tb > tb.err 2>&1 check_output tb.err clean analyze ent3.vhdl -elab_simulate_failure tb > tb.err +elab_simulate_failure tb > tb.err 2>&1 check_output tb.err clean analyze ent4.vhdl -elab_simulate_failure tb > tb.err +elab_simulate_failure tb > tb.err 2>&1 check_output tb.err clean |