[llvm] [FileCheck] Use FILECHECK_DUMP_INPUT_ON_FAILURE only when non-empty
authorMichal Gorny <mgorny@gentoo.org>
Fri, 26 Jul 2019 15:38:57 +0000 (15:38 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Fri, 26 Jul 2019 15:38:57 +0000 (15:38 +0000)
commitffc722a3581775cf6c4bbedf1364434a932dc378
treec9e7cf0b0b1c16a58bb9c5018734d34730366c71
parent91e8eac73abdfac922b3f95b462982fccb0c85c5
[llvm] [FileCheck] Use FILECHECK_DUMP_INPUT_ON_FAILURE only when non-empty

Enable dumping output only if FILECHECK_DUMP_INPUT_ON_FAILURE is set to
a non-empty value.  This is necessary to support disabling it via
POSIX-compliant env(1) that does not support '-u' argument,
and therefore fix regression caused by r366980.

Differential Revision: https://reviews.llvm.org/D65334

llvm-svn: 367122
llvm/utils/FileCheck/FileCheck.cpp