[patch] Use "set -o pipefail"

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Jul 4 12:24:58 PDT 2013


On 4 July 2013 14:47, Stephen Lin <swlin at post.harvard.edu> wrote:
> Just curious, what's the reason for changing the behavior of 'not' on
> a crashing program? Do we currently have tests depend on programs
> "crashing" in a particular way?

It is for the clang crash recovery tests. We force clang to crash and
check that the driver collects the crash recovery info. Right now that
works because we don't use pipefail. With pipefail we have to be able
to write something like

not clang %s | FileCheck

and have "not clang %s" pass when clang crashes as intended.

Cheers,
Rafael



More information about the llvm-commits mailing list