Dmitry V. Levin
92e347b556
We do our best to keep copyright headers up to date, yet git history provides better information on this subject and is more accurate than copyright headers.
20 lines
432 B
Bash
Executable File
20 lines
432 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Check how -o '|pipe' works.
|
|
#
|
|
# Copyright (c) 2016-2018 The strace developers.
|
|
# All rights reserved.
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
. "${srcdir=.}/init.sh"
|
|
|
|
check_prog grep
|
|
grep chdir $srcdir/umovestr.expected > "$EXP"
|
|
run_prog ../umovestr
|
|
|
|
$STRACE -o "|cat > $LOG && $SLEEP_A_BIT && grep chdir < $LOG > $OUT" -e chdir $args ||
|
|
dump_log_and_fail_with "$STRACE $args failed"
|
|
|
|
match_diff "$OUT" "$EXP"
|