[all-commits] [llvm/llvm-project] 0274c7: [lldb/Utils] Serialize exit code in lldb-repro.py

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Tue May 5 16:06:40 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0274c797c65a720010aee7f40cff621cd993ba15
      https://github.com/llvm/llvm-project/commit/0274c797c65a720010aee7f40cff621cd993ba15
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-05-05 (Tue, 05 May 2020)

  Changed paths:
    M lldb/utils/lldb-repro/lldb-repro.py

  Log Message:
  -----------
  [lldb/Utils] Serialize exit code in lldb-repro.py

After 61d5b0e66394 more shell test are expected to exit with a non-zero
status code. Because the exit status is computed in the driver and not
behind the SB API layer, reproducers don't know about it and always
return 0 unless replay failed.

This discrepancy means that these tests don't work with lldb-repro.py
and skipping them for this reason would be a pity. To solve this
problem, the script now serializes the exit code during capture and
returns that during replay.

These is an assert that ensures that replay exits with a zero exit
status to prevent replay failures from being silently ignored.




More information about the All-commits mailing list