Blame tests/two-files

Packit 709fb3
#! /bin/sh
Packit 709fb3
# Read two files, of increasing size.
Packit 709fb3
# With ASAN, this would have triggered a false-positive read of poisoned memory.
Packit 709fb3
#
Packit 709fb3
# Copyright 2015-2017 Free Software Foundation, Inc.
Packit 709fb3
#
Packit 709fb3
# Copying and distribution of this file, with or without modification,
Packit 709fb3
# are permitted in any medium without royalty provided the copyright
Packit 709fb3
# notice and this notice are preserved.
Packit 709fb3
Packit 709fb3
. "${srcdir=.}/init.sh"; path_prepend_ ../src
Packit 709fb3
Packit 709fb3
fail=0
Packit 709fb3
Packit 709fb3
printf a > 1 || framework_failure_
Packit 709fb3
printf ab > 2 || framework_failure_
Packit 709fb3
Packit 709fb3
grep x 1 2 > out 2>&1
Packit 709fb3
test $? -eq 1 || fail=1
Packit 709fb3
compare /dev/null out || fail=1
Packit 709fb3
Packit 709fb3
Exit $fail