锁定 ABORT 热注释 source-linked 错误

This commit is contained in:
cnc
2026-06-05 22:34:46 +08:00
parent 695186ddfc
commit ff2980569c

View File

@@ -1459,6 +1459,11 @@ if CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
echo "expected linuxcnc_abort_hot_comment.ngc to fail" >&2 echo "expected linuxcnc_abort_hot_comment.ngc to fail" >&2
exit 1 exit 1
fi fi
# Source basis: LinuxCNC src/emc/rs274ngc/interp_convert.cc
# convert_comment() routes ABORT hot comments through convert_param_comment()
# and setSavedError(), preserving expanded numbered and named parameters.
grep -Fq "execute failed: MixedCase param42=20.000000 named=4711.000000" \
"$output_dir/cnc_sim_linuxcnc_source_abort_hot_comment.err"
if CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \ if CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_ccomp_gouging_error.ngc \ "$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_ccomp_gouging_error.ngc \
>"$output_dir/cnc_sim_linuxcnc_source_ccomp_gouging_error.json" 2>"$output_dir/cnc_sim_linuxcnc_source_ccomp_gouging_error.err"; then >"$output_dir/cnc_sim_linuxcnc_source_ccomp_gouging_error.json" 2>"$output_dir/cnc_sim_linuxcnc_source_ccomp_gouging_error.err"; then