From b01b17689e919ed09ec80918b6aa23d093f355e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Povi=C5=A1er?= Date: Mon, 7 Oct 2024 14:49:17 +0200 Subject: [PATCH] Add test of error not getting silenced --- tests/various/logger_cmd_error.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 tests/various/logger_cmd_error.sh diff --git a/tests/various/logger_cmd_error.sh b/tests/various/logger_cmd_error.sh new file mode 100755 index 000000000..dd0585965 --- /dev/null +++ b/tests/various/logger_cmd_error.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +trap 'echo "ERROR in logger_cmd_error.sh" >&2; exit 1' ERR + +(../../yosys -v 3 -C <&1 | grep -F "ERROR: Module \`nonexistent' not found!" > /dev/null