继续按 align-linuxcnc 约束:补 block reader 源码错误覆盖
结论:覆盖 LinuxCNC interp_read.cc/read_dollar()/read_one_item() 的重复 $、非法起始字符和中途 N word 错误,以及 interp_check.cc/check_m_codes() 的 M 码数量错误;未扩展 smoke。 验证:./test-linuxcnc-source-link.sh;./test-native.sh。
This commit is contained in:
1
tests/gcode/linuxcnc_bad_character_bang_error.ngc
Normal file
1
tests/gcode/linuxcnc_bad_character_bang_error.ngc
Normal file
@@ -0,0 +1 @@
|
||||
!
|
||||
@@ -0,0 +1 @@
|
||||
G1 N10 X1 F100
|
||||
@@ -0,0 +1 @@
|
||||
$0 $1
|
||||
1
tests/gcode/linuxcnc_too_many_m_codes_error.ngc
Normal file
1
tests/gcode/linuxcnc_too_many_m_codes_error.ngc
Normal file
@@ -0,0 +1 @@
|
||||
M0 M3 M6 M7 M48
|
||||
Reference in New Issue
Block a user