From db40b99e38149d644808ec22b44a89fe758b739b Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Thu, 1 Dec 2022 07:32:46 +0300 Subject: testsuite: added (known bug) testcases for dangling else- and end-if statements * This is not easy to fix (show errors when encountering these constructs without preceding if <"> statements) and would require complicating the parser only to detect this. On the other hand, keeping things as they are does not really harm anybody. --- tests/testsuite.at | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/testsuite.at b/tests/testsuite.at index dd37053..e604c7f 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -113,6 +113,12 @@ AT_CLEANUP AT_BANNER([Known Bugs]) +AT_SETUP([Dangling Else/End-If]) +AT_CHECK([$SCITECO -e "'"], 1, ignore, ignore) +AT_CHECK([$SCITECO -e "| (0/0) '"], 1, ignore, ignore) +AT_XFAIL_IF(true) +AT_CLEANUP + # NOTE: This bug depends on specific build options of Glib's # PCRE which is not predictable. #AT_SETUP([Pattern matching overflow]) -- cgit v1.2.3