Updating tests that fail with ICC 13.1 because of the different mapping of assembly...
authorAshok Thirumurthi <ashok.thirumurthi@intel.com>
Wed, 24 Jul 2013 13:24:06 +0000 (13:24 +0000)
committerAshok Thirumurthi <ashok.thirumurthi@intel.com>
Wed, 24 Jul 2013 13:24:06 +0000 (13:24 +0000)
llvm-svn: 187035

lldb/test/functionalities/longjmp/TestLongjmp.py
lldb/test/functionalities/thread/step_out/TestThreadStepOut.py

index 6ab6d86..adb03ad 100644 (file)
@@ -44,19 +44,21 @@ class LongjmpTestCase(TestBase):
         self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
             substrs = ['stopped', 'stop reason = breakpoint'])
 
+    def check_status(self):
+        # Note: Depending on the generated mapping of DWARF to assembly,
+        # the process may have stopped or exited.
+        self.expect("process status", PROCESS_STOPPED,
+            patterns = ['Process .*'])
+
     def step_out(self):
         self.start_test("do_jump")
-
         self.runCmd("thread step-out", RUN_SUCCEEDED)
-        self.expect("process status", PROCESS_STOPPED,
-            patterns = ['Process .* exited with status = 0'])
+        self.check_status()
 
     def step_over(self):
         self.start_test("do_jump")
-
         self.runCmd("thread step-over", RUN_SUCCEEDED)
-        self.expect("process status", PROCESS_STOPPED,
-            patterns = ['Process .* exited with status = 0'])
+        self.check_status()
 
     def step_back_out(self):
         self.start_test("main")
@@ -64,8 +66,7 @@ class LongjmpTestCase(TestBase):
         self.runCmd("thread step-over", RUN_SUCCEEDED)
         self.runCmd("thread step-in", RUN_SUCCEEDED)
         self.runCmd("thread step-out", RUN_SUCCEEDED)
-        self.expect("process status", PROCESS_STOPPED,
-            patterns = ['Process .* exited with status = 0'])
+        self.check_status()
 
 if __name__ == '__main__':
     import atexit
index becc913..47728e3 100644 (file)
@@ -53,10 +53,10 @@ class ThreadStepOutTestCase(TestBase):
         TestBase.setUp(self)
         # Find the line number for our breakpoint.
         self.breakpoint = line_number('main.cpp', '// Set breakpoint here')
-        if "gcc" in self.getCompiler():
-            self.step_out_destination = line_number('main.cpp', '// Expect to stop here after step-out (gcc)')
-        else:
+        if "clang" in self.getCompiler():
             self.step_out_destination = line_number('main.cpp', '// Expect to stop here after step-out (clang)')
+        else:
+            self.step_out_destination = line_number('main.cpp', '// Expect to stop here after step-out (gcc)')
 
     def step_out_single_thread_with_cmd(self):
         self.step_out_with_cmd("this-thread")