[all-commits] [llvm/llvm-project] 2ec75a: [lit] Flush stderr manually on Windows after print...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Sat Dec 18 11:42:18 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2ec75a0869ab01fa9caf310e8a31eb7716182d30
      https://github.com/llvm/llvm-project/commit/2ec75a0869ab01fa9caf310e8a31eb7716182d30
  Author: Martin Storsjö <martin at martin.st>
  Date:   2021-12-18 (Sat, 18 Dec 2021)

  Changed paths:
    M libcxx/utils/libcxx/test/config.py
    M llvm/utils/lit/lit/LitConfig.py

  Log Message:
  -----------
  [lit] Flush stderr manually on Windows after printing messages

When run in a git bash terminal, sys.stderr isn't flushed implicitly
after printing each line. Manually flush it after each printout,
to avoid getting broken/misordered output.

A similar fix had been done in the old libcxx test config, committed
as part of 7e3ee09ad24cbca3ea7687c50b53be5269127fb1 / D28725; this
generalizes the fix, making it available in the new libcxx test
configs too, and for any other test that uses lit_config.note().

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




More information about the All-commits mailing list