From ae038c41824917c57f92e10ef455d1a62691b245 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Wed, 12 Apr 2023 11:38:26 +0200 Subject: [PATCH] Ensure 'simple_float_constant_bad.t' passes as a failure as it checks for a bad floating point --- .github/workflows/d.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/d.yml b/.github/workflows/d.yml index 5520feea..cb1f4889 100644 --- a/.github/workflows/d.yml +++ b/.github/workflows/d.yml @@ -89,7 +89,15 @@ jobs: - name: Simple float constant run: ./tlang syntaxcheck source/tlang/testing/typecheck/simple_float_constant.t - name: Simple float constant bad - run: ./tlang syntaxcheck source/tlang/testing/typecheck/simple_float_constant_bad.t + run: | + set +e + ./tlang syntaxcheck source/tlang/testing/typecheck/simple_float_constant_bad.t + if [ $? = 255 ] + then + exit 0 + else + exit 1 + fi - name: Simple string run: ./tlang syntaxcheck source/tlang/testing/typecheck/simple_string.t