Import LinuxCNC source tree
This commit is contained in:
4
tests/threads.1/checkresult
Executable file
4
tests/threads.1/checkresult
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh -e
|
||||
# Check that the tmax for a hal function is nonzero
|
||||
CYCLES=$(cat "$1")
|
||||
test ! -z "$CYCLES" -a "$CYCLES" -gt 0
|
||||
6
tests/threads.1/test.hal
Normal file
6
tests/threads.1/test.hal
Normal file
@@ -0,0 +1,6 @@
|
||||
loadrt threads
|
||||
loadrt and2 count=1
|
||||
addf and2.0 thread1
|
||||
start
|
||||
loadusr -w sleep 1
|
||||
getp and2.0.tmax
|
||||
Reference in New Issue
Block a user