按规划持续工作
This commit is contained in:
3
wasm-port/vendor/linuxcnc/tests/interp/iniparam-failassign/README
vendored
Normal file
3
wasm-port/vendor/linuxcnc/tests/interp/iniparam-failassign/README
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
assigning to an inifile variable reference must fail:
|
||||
|
||||
#<_ini[section]name> = <value>
|
||||
10
wasm-port/vendor/linuxcnc/tests/interp/iniparam-failassign/expected
vendored
Normal file
10
wasm-port/vendor/linuxcnc/tests/interp/iniparam-failassign/expected
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
executing
|
||||
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()
|
||||
Cannot assign to read-only parameter #<_ini[vars]toolchange_x>
|
||||
#<_ini[vars]toolchange_x> = 3.1415
|
||||
7 N..... ON_RESET()
|
||||
9
wasm-port/vendor/linuxcnc/tests/interp/iniparam-failassign/test.ini
vendored
Normal file
9
wasm-port/vendor/linuxcnc/tests/interp/iniparam-failassign/test.ini
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
[EMC]
|
||||
DEBUG=0
|
||||
LOG_LEVEL=0
|
||||
|
||||
[RS274NGC]
|
||||
INI_VARS = 1
|
||||
|
||||
[VARS]
|
||||
TOOLCHANGE_X = 10
|
||||
3
wasm-port/vendor/linuxcnc/tests/interp/iniparam-failassign/test.ngc
vendored
Normal file
3
wasm-port/vendor/linuxcnc/tests/interp/iniparam-failassign/test.ngc
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
#<_ini[vars]toolchange_x> = 3.1415
|
||||
(debug, notreached: #<_ini[vars]toolchange_x>)
|
||||
M2
|
||||
8
wasm-port/vendor/linuxcnc/tests/interp/iniparam-failassign/test.sh
vendored
Executable file
8
wasm-port/vendor/linuxcnc/tests/interp/iniparam-failassign/test.sh
vendored
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
export PYTHONUNBUFFERED=1
|
||||
if ! rs274 -i test.ini -g test.ngc 2>&1; then
|
||||
# expected to fail
|
||||
exit 0
|
||||
fi
|
||||
|
||||
exit 1
|
||||
Reference in New Issue
Block a user