1
1
mirror of https://github.com/wader/fq.git synced 2024-12-18 02:41:44 +03:00
fq/pkg/cli/test_cli_ctrld.exp
Mattias Wadman 9cb4b57a45 interp,cli: Handle ctrl-c properly
Should supress cancel error message
Add CLI ctlr-c/ctrl-d tests and make them more robust
2022-03-15 22:38:12 +01:00

16 lines
182 B
Plaintext

#!/usr/bin/env expect
log_user 1
set timeout 3
expect_after {
timeout {exit 1}
}
spawn sh -c "cat | fq 2>&1"
sleep 1
# ctrl-d
send "\x04"
expect "failed to decode"
expect eof