This commit is contained in:
Kyryl Melekhin
2021-11-12 12:28:01 +00:00
parent 575133875c
commit d6b335fdb8
2 changed files with 2 additions and 2 deletions

2
pike.c
View File

@@ -609,7 +609,7 @@ int re_pikevm(rcode *prog, const char *s, const char **subp, int nsubp)
decref(nsub) decref(nsub)
} }
break_for: break_for:
if (!c) if (sp == _sp)
break; break;
tmp = clist; tmp = clist;
clist = nlist; clist = nlist;

View File

@@ -481,7 +481,7 @@ printf '%s\n' "$regex" | while read re; do
fi fi
var1=$(printf '%s\n' "$var" | tail -1) var1=$(printf '%s\n' "$var" | tail -1)
if [ ! "$exp" = "$var1" ]; then if [ ! "$exp" = "$var1" ]; then
printf '%s\' "fail test$c regex:$re input:$inp expect:$exp output:$var1" printf '%s\n' "fail test$c regex:$re input:$inp expect:$exp output:$var1"
exit 1 exit 1
fi fi
time=$(printf '%s\n' "$var" | tail -2 | head -n1) time=$(printf '%s\n' "$var" | tail -2 | head -n1)