Import LinuxCNC source tree
This commit is contained in:
9
tests/interp/nested-sub-in-file-error/expected
Normal file
9
tests/interp/nested-sub-in-file-error/expected
Normal file
@@ -0,0 +1,9 @@
|
||||
1 N..... USE_LENGTH_UNITS(CANON_UNITS_MM)
|
||||
2 N..... SET_G5X_OFFSET(1, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
3 N..... SET_G92_OFFSET(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
4 N..... SET_XY_ROTATION(0.0000)
|
||||
5 N..... SET_FEED_REFERENCE(CANON_XYZ)
|
||||
6 N..... ON_RESET()
|
||||
7 N..... COMMENT("Test: numbered sub after named endsub in same file should error")
|
||||
8 N..... MESSAGE(" sequential main: 7.000000 8.000000 9.000000")
|
||||
9 N..... ON_RESET()
|
||||
@@ -0,0 +1,9 @@
|
||||
o<sequential> sub
|
||||
(DEBUG, sequential main: #1 #2 #3)
|
||||
o200 call [4] [5] [6]
|
||||
o<sequential> endsub
|
||||
|
||||
o200 sub
|
||||
(DEBUG, o200 helper: #1 #2 #3)
|
||||
o200 endsub
|
||||
M2
|
||||
2
tests/interp/nested-sub-in-file-error/test.ini
Normal file
2
tests/interp/nested-sub-in-file-error/test.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[RS274NGC]
|
||||
SUBROUTINE_PATH=subs
|
||||
3
tests/interp/nested-sub-in-file-error/test.ngc
Normal file
3
tests/interp/nested-sub-in-file-error/test.ngc
Normal file
@@ -0,0 +1,3 @@
|
||||
(Test: numbered sub after named endsub in same file should error)
|
||||
o<sequential> call [7] [8] [9]
|
||||
M2
|
||||
5
tests/interp/nested-sub-in-file-error/test.sh
Normal file
5
tests/interp/nested-sub-in-file-error/test.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash -e
|
||||
# Numbered sub called from within a named sub file, where no matching
|
||||
# file exists, must produce an error (forward-seek blocked).
|
||||
# Regression test for LinuxCNC/linuxcnc#3880.
|
||||
! rs274 -g -i test.ini test.ngc
|
||||
Reference in New Issue
Block a user