diff options
author | Raphael Isemann <teemperor@gmail.com> | 2020-11-26 09:40:02 +0100 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2020-11-26 09:43:47 +0100 |
commit | 53a14a47ee89dadb8798ca8ed19848f33f4551d5 (patch) | |
tree | 669aff7576b10a4b3fc7ab5c718b900c32c5cb2d | |
parent | d1fd91ddaf9de95428a25d001606c23703e14b31 (diff) | |
download | llvm-53a14a47ee89dadb8798ca8ed19848f33f4551d5.zip llvm-53a14a47ee89dadb8798ca8ed19848f33f4551d5.tar.gz llvm-53a14a47ee89dadb8798ca8ed19848f33f4551d5.tar.bz2 |
[lldb] Fix TestThreadStepOut.py after "Flush local value map on every instruction"
After cf1c774d6ace59c5adc9ab71b31e762c1be695b1, Clang seems to generate code
that is more similar to icc/Clang, so we can use the same line numbers for
all compilers in this test.
-rw-r--r-- | lldb/test/API/functionalities/thread/step_out/TestThreadStepOut.py | 8 | ||||
-rw-r--r-- | lldb/test/API/functionalities/thread/step_out/main.cpp | 4 |
2 files changed, 4 insertions, 8 deletions
diff --git a/lldb/test/API/functionalities/thread/step_out/TestThreadStepOut.py b/lldb/test/API/functionalities/thread/step_out/TestThreadStepOut.py index eb2d264..ae46530 100644 --- a/lldb/test/API/functionalities/thread/step_out/TestThreadStepOut.py +++ b/lldb/test/API/functionalities/thread/step_out/TestThreadStepOut.py @@ -70,12 +70,8 @@ class ThreadStepOutTestCase(TestBase): self.bkpt_string = '// Set breakpoint here' self.breakpoint = line_number('main.cpp', self.bkpt_string) - if "gcc" in self.getCompiler() or self.isIntelCompiler(): - self.step_out_destination = line_number( - 'main.cpp', '// Expect to stop here after step-out (icc and gcc)') - else: - self.step_out_destination = line_number( - 'main.cpp', '// Expect to stop here after step-out (clang)') + self.step_out_destination = line_number( + 'main.cpp', '// Expect to stop here after step-out.') def step_out_single_thread_with_cmd(self): self.step_out_with_cmd("this-thread") diff --git a/lldb/test/API/functionalities/thread/step_out/main.cpp b/lldb/test/API/functionalities/thread/step_out/main.cpp index 14d8401..e7dd230 100644 --- a/lldb/test/API/functionalities/thread/step_out/main.cpp +++ b/lldb/test/API/functionalities/thread/step_out/main.cpp @@ -19,10 +19,10 @@ thread_func () pseudo_barrier_wait(g_barrier); // Do something - step_out_of_here(); // Expect to stop here after step-out (clang) + step_out_of_here(); // Return - return NULL; // Expect to stop here after step-out (icc and gcc) + return NULL; // Expect to stop here after step-out. } int main () |