diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2022-12-01 07:32:46 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2022-12-01 07:43:04 +0300 |
commit | db40b99e38149d644808ec22b44a89fe758b739b (patch) | |
tree | b0a404fb06aece4eb99b2d760a698f80ad4fafe8 /tests | |
parent | ca9de0428fa69c2e0c6fee1b960c9408c5184301 (diff) | |
download | sciteco-db40b99e38149d644808ec22b44a89fe758b739b.tar.gz |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testsuite.at | 6 |
1 files changed, 6 insertions, 0 deletions
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]) |