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