继续按 align-linuxcnc 约束:补文件读取错误源码覆盖
结论:新增 read_text 和 read_n_number 的 EOF、百分号文件、过长行和 N 行号错误 source-link 断言;依据 LinuxCNC interp_read.cc,未扩展 smoke。
This commit is contained in:
1
tests/gcode/linuxcnc_bad_n_number_format_error.ngc
Normal file
1
tests/gcode/linuxcnc_bad_n_number_format_error.ngc
Normal file
@@ -0,0 +1 @@
|
||||
N G1 X1 F100
|
||||
2
tests/gcode/linuxcnc_file_ended_no_percent_error.ngc
Normal file
2
tests/gcode/linuxcnc_file_ended_no_percent_error.ngc
Normal file
@@ -0,0 +1,2 @@
|
||||
%
|
||||
G1 X1 F100
|
||||
1
tests/gcode/linuxcnc_file_ended_no_program_end_error.ngc
Normal file
1
tests/gcode/linuxcnc_file_ended_no_program_end_error.ngc
Normal file
@@ -0,0 +1 @@
|
||||
G1 X1 F100
|
||||
Reference in New Issue
Block a user