From 9137826c5bc6d5e20a7b1049025269d2c92f8ea2 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 12 May 2025 21:54:01 +0900 Subject: output compile error on stderr instead of stdout --- tests/test_compile_error.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/test_compile_error.sh (limited to 'tests/test_compile_error.sh') diff --git a/tests/test_compile_error.sh b/tests/test_compile_error.sh new file mode 100644 index 0000000..2e3c207 --- /dev/null +++ b/tests/test_compile_error.sh @@ -0,0 +1,9 @@ +cat > main.c + +"$ducc" main.c > /dev/null 2> output +if [[ $? -eq 0 ]]; then + "expected to fail" + exit 1 +fi + +diff -u expected output -- cgit v1.2.3-70-g09d2