~sircmpwn/ctools

ref: cc69324393fda9bcbc73d30d1bda022263f012a8 ctools/test/sleep -rw-r--r-- 200 bytes
cc693243 — Gabor Koszegi Correct tee SIGINT test 1 year, 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
tool="true"
. "$HARNESS"

should_return_zero() {
	sleep 1
}

should_return_error() {
	if ! sleep hans; then
		return 0
	fi
	return 1
}

runtests \
	should_return_zero \
	should_return_error