File: test.py

package info (click to toggle)
linuxcnc 1%3A2.9.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 285,604 kB
  • sloc: python: 202,568; ansic: 109,036; cpp: 99,239; tcl: 16,054; xml: 10,631; sh: 10,303; makefile: 1,255; javascript: 138; sql: 72; asm: 15
file content (13 lines) | stat: -rwxr-xr-x 241 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env python3
import hal

c = hal.component("stream_test")
try:
    writer = hal.stream(c, hal.streamer_base, 10, "xx")
except:
    pass
else:
    assert False, "hal.stream should fail with invalid cfg arg"

c.ready()
print("pass")