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:
parent
c87b4782a8
commit
db90d1a4c2
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue