mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-17 14:59:20 +02:00
Add test for UNMATCHED PUSH
This commit is contained in:
@@ -1215,7 +1215,7 @@ int DoBanner(ParsePtr p)
|
||||
}
|
||||
}
|
||||
DBufFree(&Banner);
|
||||
|
||||
|
||||
err = DBufPuts(&Banner, DBufValue(&buf));
|
||||
DBufFree(&buf);
|
||||
return err;
|
||||
|
||||
@@ -551,6 +551,21 @@ EOF
|
||||
|
||||
../src/remind ../tests/expr.rem >> ../tests/test.out 2>&1
|
||||
|
||||
../src/remind - <<'EOF' >> ../tests/test.out 2>&1
|
||||
PUSH
|
||||
POP
|
||||
PUSH
|
||||
PUSH
|
||||
POP
|
||||
POP
|
||||
PUSH
|
||||
PUSH
|
||||
POP
|
||||
PUSH
|
||||
POP
|
||||
PUSH
|
||||
POP
|
||||
EOF
|
||||
# Remove references to SysInclude, which is build-specific
|
||||
grep -F -v '$SysInclude' < ../tests/test.out > ../tests/test.out.1 && mv -f ../tests/test.out.1 ../tests/test.out
|
||||
cmp -s ../tests/test.out ../tests/test.cmp
|
||||
|
||||
@@ -12346,3 +12346,6 @@ No reminders.
|
||||
Expression nodes high-water: 499
|
||||
Expression nodes leaked: 0
|
||||
Parse level high-water: 2001
|
||||
-stdin-(14): Unmatched PUSH-OMIT-CONTEXT at -(7)
|
||||
-stdin-(14): Warning: PUSH-OMIT-CONTEXT without matching POP-OMIT-CONTEXT
|
||||
No reminders.
|
||||
|
||||
Reference in New Issue
Block a user