[PATCH] D139592: [llvm-lit] Keep start/end part of the output when truncating

Andrei Elovikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 9 09:48:35 PST 2022


a.elovikov added a comment.

My use-case is downstream where I use FileCheck against stderr like this:

  // a.cpp:
  // RUN: DEBUG_OUR_RUNTIME=1 %t.out > %t.log 2>&1
  // RUN: FileCheck %s < %t.log
  //
  // ...
  // assert(Something);

Debug output is bigger than the threshold (although I only FileCheck a tiny bit of it) so without this change I don't see the failing assert when running llvm-lit. With the patch assert message is visible in the llvm-lit's output.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139592/new/

https://reviews.llvm.org/D139592



More information about the llvm-commits mailing list