aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2020-04-27 14:38:32 +0200
committerRaphael Isemann <teemperor@gmail.com>2020-04-27 14:57:12 +0200
commitd00eaa082b7cd6ada106ed01751abce65abd6dd8 (patch)
tree7ac48520bf970d3b65b459661e62ad4a0366942a /llvm/tools/llvm-objdump/llvm-objdump.cpp
parent6d5a9e8d820aa3c96f8ee11d9da80bf4bba063e9 (diff)
downloadllvm-d00eaa082b7cd6ada106ed01751abce65abd6dd8.zip
llvm-d00eaa082b7cd6ada106ed01751abce65abd6dd8.tar.gz
llvm-d00eaa082b7cd6ada106ed01751abce65abd6dd8.tar.bz2
[lldb] Adjust TestExec code to be closer to real world code
Summary: For some reason the TestExec test on the macOS bots randomly fails with this error: ``` output: * thread #2, stop reason = EXC_BAD_ACCESS (code=1, address=0x108e66000) * frame #0: 0x0000000108e66000 [...] File "/Users/buildslave/jenkins/workspace/lldb-cmake/llvm-project/lldb/test/API/functionalities/exec/TestExec.py", line 25, in test_hitting_exec self.do_test(False) File "/Users/buildslave/jenkins/workspace/lldb-cmake/llvm-project/lldb/test/API/functionalities/exec/TestExec.py", line 113, in do_test "Stopped at breakpoint in exec'ed process.") AssertionError: False is not True : Stopped at breakpoint in exec'ed process. Config=x86_64-/Users/buildslave/jenkins/workspace/lldb-cmake/lldb-build/bin/clang-11 ``` I don't know why the test program is failing and I couldn't reproduce this problem on my own. This patch is a stab in the dark that just tries to make the test code more similar to code which we would expect in a user program to make whatever part of macOS happy that is currently not liking our code. The actual changes are: * We pass in argv[0] that is describing otherprog path instead of the current argv[0]. * We pass in a non-null envp (which anyway doesn't seem to be allowed on macOS man page). Reviewers: labath, JDevlieghere Reviewed By: labath Subscribers: abidh, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D75241
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions