继续按 align-linuxcnc 约束:补 O-word 读取错误源码覆盖
结论:新增 malformed O-word、缺少控制表达式括号、O-call 参数过多和 M98 缺 P 的 source-link 断言;依据 LinuxCNC interp_read.cc,未扩展 smoke。
This commit is contained in:
1
tests/gcode/linuxcnc_m98_missing_p_word_error.ngc
Normal file
1
tests/gcode/linuxcnc_m98_missing_p_word_error.ngc
Normal file
@@ -0,0 +1 @@
|
||||
M98
|
||||
@@ -0,0 +1 @@
|
||||
O100 elseif 1
|
||||
1
tests/gcode/linuxcnc_oword_if_missing_bracket_error.ngc
Normal file
1
tests/gcode/linuxcnc_oword_if_missing_bracket_error.ngc
Normal file
@@ -0,0 +1 @@
|
||||
O100 if 1
|
||||
@@ -0,0 +1 @@
|
||||
O100 repeat 1
|
||||
@@ -0,0 +1 @@
|
||||
O<missing> call [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31]
|
||||
@@ -0,0 +1 @@
|
||||
O100 if [1] X1
|
||||
1
tests/gcode/linuxcnc_oword_unknown_command_error.ngc
Normal file
1
tests/gcode/linuxcnc_oword_unknown_command_error.ngc
Normal file
@@ -0,0 +1 @@
|
||||
O100 frobnicate
|
||||
@@ -0,0 +1 @@
|
||||
O100 while 1
|
||||
Reference in New Issue
Block a user