]> granicus.if.org Git - llvm/commit
[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)
commitdf48437acd35bef8d38a8a4a021e2e215639f89e
treed4278abf2290331219ead8fba6d4d12deeab0f56
parent37656fef286b7a708fb44314ef46ab5676d25e80
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367122 91177308-0d34-0410-b5e6-96231b3b80d8
utils/FileCheck/FileCheck.cpp