commit | 5187ebbe875b67efe7e7ca4dff799beec13719c0 | [log] [tgz] |
---|---|---|
author | Matt Morehouse <mascasa@google.com> | Thu Jul 20 20:43:39 2017 +0000 |
committer | Matt Morehouse <mascasa@google.com> | Thu Jul 20 20:43:39 2017 +0000 |
tree | d26794332836b8ee2e260da5334fc4b1baf7e8bb | |
parent | ebb6c958cec89ae46443ab890c69040260e2c725 [diff] |
Generate error reports when a fuzz target exits. Summary: Implements https://github.com/google/sanitizers/issues/835. Flush stdout before exiting in test cases. Since the atexit hook is used for exit reports, pending prints to stdout can be lost if they aren't flushed before calling exit(). Expect tests to have non-zero exit code if exit() is called. Reviewers: vitalybuka, kcc Reviewed By: kcc Subscribers: eraman, llvm-commits, hiraditya Differential Revision: https://reviews.llvm.org/D35602 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308669 91177308-0d34-0410-b5e6-96231b3b80d8