tests: Check that example symbol isn't released

For the motivation for this see #2132.
This commit is contained in:
Matthew Leeds committed 2020-06-17 15:28:15 -07:00
1 parent 33c95812bb
commit d21181653e
2 files changed
+22

No files matched your search

+10
View File
@@ -115,6 +115,16 @@ assert_file_has_content () {
done
}
assert_file_has_content_once () {
fpath=$1
shift
for re in "$@"; do
if ! test $(grep -e "$re" "$fpath" | wc -l) = "1"; then
_fatal_print_file "$fpath" "File '$fpath' doesn't match regexp '$re' exactly once"
fi
done
}
assert_file_has_content_literal () {
fpath=$1; shift
for s in "$@"; do