mirror of
https://github.com/stefanocasazza/ULib.git
synced 2025-09-28 19:05:55 +08:00
31 lines
439 B
Bash
Executable File
31 lines
439 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. ../.function
|
|
|
|
## interrupt -- Test interrupt feature
|
|
|
|
start_msg interrupt
|
|
|
|
#UTRACE="0 5M 0"
|
|
#UOBJDUMP="0 100k 10"
|
|
#USIMERR="error.sim"
|
|
#EXEC_ON_EXIT="/utility/stack_dump.sh"
|
|
export UTRACE UOBJDUMP USIMERR EXEC_ON_EXIT
|
|
|
|
unset VALGRIND
|
|
|
|
cat << EOF >tmp/c
|
|
c
|
|
c
|
|
c
|
|
c
|
|
c
|
|
EOF
|
|
|
|
start_cmd interrupt < tmp/c
|
|
RESULT=0
|
|
|
|
# Test against expected output
|
|
grep 'test_interrupt:' err/interrupt.err > out/interrupt.out
|
|
test_output_wc w interrupt
|