3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 17:15:33 +00:00

logcmd.cc: Check length before unquoting

`log "` should log `"`.
Also fix test script to correctly fail when more than one test fails.
This commit is contained in:
Krystine Sherwin 2024-08-17 11:33:29 +12:00
parent c87b4782a8
commit db90d1a4c2
No known key found for this signature in database
2 changed files with 5 additions and 2 deletions

View file

@ -31,7 +31,10 @@ test_log "\"!bang\"" "!bang"
test_log "\"spaces are cool too\"" "spaces are cool too"
test_log "\"log a\"; log b" "log a"
test_log "\"log a\"; log b" "b"
test_log "\"" "\""
test_log "\\\"" "\\\\\"" #\" == \"
if [ -f quotes-*.err ] ; then
errors=( quotes-*.err )
if [ -f $errors ] ; then
exit 1
fi