blob: 03c3bac060dc53876507562bfff83f9e8a1e1ab7 [file] [log] [blame]
Brian Silverman516ceb22015-11-27 01:29:05 -05001set -e
2set -u
3
4OUTPUT=$(TCMALLOC_LARGE_ALLOC_REPORT_THRESHOLD=10 build_tests/tcmalloc_build_test_binary 2>&1)
5
6if [[ -z "${OUTPUT}" ]]; then
7 echo 'Empty output!' >&2
8 exit 1
9fi
10
11PATTERN='tcmalloc: large alloc [0-9]+ bytes =='
12
13if [[ ! "${OUTPUT}" =~ ${PATTERN} ]]; then
14 echo 'Unexpected output:' >&2
15 echo "${OUTPUT}" >&2
16 exit 1
17fi