Import LinuxCNC source tree
This commit is contained in:
8
tests/interp/nested-sub-error/expected
Normal file
8
tests/interp/nested-sub-error/expected
Normal file
@@ -0,0 +1,8 @@
|
||||
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: nested sub definition inside named sub should error")
|
||||
8 N..... ON_RESET()
|
||||
7
tests/interp/nested-sub-error/subs/nested.ngc
Normal file
7
tests/interp/nested-sub-error/subs/nested.ngc
Normal file
@@ -0,0 +1,7 @@
|
||||
o<nested> sub
|
||||
o100 sub
|
||||
(DEBUG, inner o100: #1 #2 #3)
|
||||
o100 endsub
|
||||
o100 call [4] [5] [6]
|
||||
o<nested> endsub
|
||||
M2
|
||||
2
tests/interp/nested-sub-error/test.ini
Normal file
2
tests/interp/nested-sub-error/test.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[RS274NGC]
|
||||
SUBROUTINE_PATH=subs
|
||||
3
tests/interp/nested-sub-error/test.ngc
Normal file
3
tests/interp/nested-sub-error/test.ngc
Normal file
@@ -0,0 +1,3 @@
|
||||
(Test: nested sub definition inside named sub should error)
|
||||
o<nested> call [7] [8] [9]
|
||||
M2
|
||||
4
tests/interp/nested-sub-error/test.sh
Normal file
4
tests/interp/nested-sub-error/test.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash -e
|
||||
# Nested sub definition inside a called named sub must produce an error.
|
||||
# Regression test for LinuxCNC/linuxcnc#3880.
|
||||
! rs274 -g -i test.ini test.ngc
|
||||
Reference in New Issue
Block a user