继续按 align-linuxcnc 约束:补齐 read_operation 源码错误覆盖
结论:覆盖 LinuxCNC interp_read.cc read_operation() 的未知二元操作名前缀、未知操作字符和未闭合表达式错误;未扩展 smoke。 验证:./test-native.sh;./test-linuxcnc-source-link.sh。
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
#1 = [1 aaz 2]
|
||||
G1 X#1 F100
|
||||
@@ -0,0 +1,2 @@
|
||||
#1 = [1 ez 2]
|
||||
G1 X#1 F100
|
||||
@@ -0,0 +1,2 @@
|
||||
#1 = [1 gz 2]
|
||||
G1 X#1 F100
|
||||
@@ -0,0 +1,2 @@
|
||||
#1 = [1 lz 2]
|
||||
G1 X#1 F100
|
||||
@@ -0,0 +1,2 @@
|
||||
#1 = [1 moz 2]
|
||||
G1 X#1 F100
|
||||
@@ -0,0 +1,2 @@
|
||||
#1 = [1 nz 2]
|
||||
G1 X#1 F100
|
||||
@@ -0,0 +1,2 @@
|
||||
#1 = [1 oz 2]
|
||||
G1 X#1 F100
|
||||
2
tests/gcode/linuxcnc_binary_unknown_operation_error.ngc
Normal file
2
tests/gcode/linuxcnc_binary_unknown_operation_error.ngc
Normal file
@@ -0,0 +1,2 @@
|
||||
#1 = [1 @ 2]
|
||||
G1 X#1 F100
|
||||
@@ -0,0 +1,2 @@
|
||||
#1 = [1 xaz 2]
|
||||
G1 X#1 F100
|
||||
2
tests/gcode/linuxcnc_unclosed_expression_error.ngc
Normal file
2
tests/gcode/linuxcnc_unclosed_expression_error.ngc
Normal file
@@ -0,0 +1,2 @@
|
||||
#1 = [1 + 2
|
||||
G1 X#1 F100
|
||||
Reference in New Issue
Block a user