Debian Codegraph @

debian/tests/process-listing

raw symbols SCIP
1 #!/bin/sh
2 set -eu
3
4 tmpdir="$(mktemp -d)"
5 trap 'kill "$child" 2>/dev/null || true; rm -rf "$tmpdir"' EXIT
6
7 sleep 60 &
8 child="$!"
9
10 sleep 1
11
12 timeout 10 ips -col pid command > "$tmpdir/output"
13
14 grep -q "$child" "$tmpdir/output"
15 grep -q "sleep" "$tmpdir/output"