3 # Check strace-log-merge pid formatting.
5 # Copyright (c) 2019 The strace developers.
8 # SPDX-License-Identifier: GPL-2.0-or-later
10 . "${srcdir=.}/init.sh"
12 rm -f -- "$LOG".[0-9]*
14 echo '3456789012.345678 +++ exited with 3 +++' > "$LOG".4294967295
15 echo '1234567890.123456 +++ exited with 2 +++' > "$LOG".65535
16 echo '2345678901.234567 +++ exited with 1 +++' > "$LOG".1
19 65535 1234567890.123456 +++ exited with 2 +++
20 1 2345678901.234567 +++ exited with 1 +++
21 4294967295 3456789012.345678 +++ exited with 3 +++
24 "$srcdir"/../strace-log-merge "$LOG" > "$OUT" 2> "$LOG" ||
25 dump_log_and_fail_with 'strace-log-merge failed'
27 match_diff "$OUT" "$EXP" 'strace-log-merge output mismatch'
29 rm -f -- "$LOG".[0-9]*