phase29ao(p35): ssot tag coverage and pattern1 negative gate
This commit is contained in:
@ -12,6 +12,7 @@ require_env || exit 2
|
||||
|
||||
FIXTURE="$NYASH_ROOT/apps/tests/phase29ao_pattern1_subset_reject_extra_stmt.hako"
|
||||
RUN_TIMEOUT_SECS=${RUN_TIMEOUT_SECS:-10}
|
||||
SHADOW_TAG='[coreplan/shadow_adopt:pattern1_simplewhile]'
|
||||
|
||||
set +e
|
||||
OUTPUT=$(timeout "$RUN_TIMEOUT_SECS" env NYASH_DISABLE_PLUGINS=1 HAKO_JOINIR_STRICT=1 "$NYASH_BIN" --backend vm "$FIXTURE" 2>&1)
|
||||
@ -29,5 +30,11 @@ if [ "$EXIT_CODE" -ne 3 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if echo "$OUTPUT" | grep -qF "$SHADOW_TAG"; then
|
||||
log_error "phase29ao_pattern1_subset_reject_extra_stmt_vm: shadow adopt tag must not appear: $SHADOW_TAG"
|
||||
echo "$OUTPUT"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
log_success "phase29ao_pattern1_subset_reject_extra_stmt_vm: PASS (exit=3)"
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user