Files
linuxcncAllWasm/tests/hal-stream/streamtest.py
2026-08-20 06:17:39 +08:00

14 lines
241 B
Python
Executable File

#!/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")