Test compatibility improvements for ICC
authorDaniel Malea <daniel.malea@intel.com>
Tue, 6 Aug 2013 15:00:23 +0000 (15:00 +0000)
committerDaniel Malea <daniel.malea@intel.com>
Tue, 6 Aug 2013 15:00:23 +0000 (15:00 +0000)
- update TestThreadStepOut.py to work with Intel compilers
- fix typo in TestConcurrentEvents

llvm-svn: 187801

lldb/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py
lldb/test/functionalities/thread/step_out/TestThreadStepOut.py
lldb/test/functionalities/thread/step_out/main.cpp

index 6819ebe6a5a533cde6c8b8e3a2c146227a286ddd..5594d1ecb7f251cc022e9e917fbb79730c411c34 100644 (file)
@@ -508,7 +508,7 @@ class ConcurrentEventsTestCase(TestBase):
 
             expected_signal_threads = num_delay_signal_threads + num_signal_threads
             self.assertEqual(expected_signal_threads, self.signal_count,
-                "Expected %d stops due to signal delivery, but got %d" % (expected_breakpoint_threads, self.signal_count))
+                "Expected %d stops due to signal delivery, but got %d" % (expected_signal_threads, self.signal_count))
 
             expected_watchpoint_threads = num_delay_watchpoint_threads + num_watchpoint_threads
             watchpoint_hit_count = self.thread_watchpoint.GetHitCount() if expected_watchpoint_threads > 0 else 0
index 436a03abc39600a95e7fc7c900f23b23692177c4..be894fdee37ada5ef3ee45a98c060e42505bb347 100644 (file)
@@ -56,10 +56,10 @@ class ThreadStepOutTestCase(TestBase):
         TestBase.setUp(self)
         # Find the line number for our breakpoint.
         self.breakpoint = line_number('main.cpp', '// Set breakpoint here')
-        if "clang" in self.getCompiler():
-            self.step_out_destination = line_number('main.cpp', '// Expect to stop here after step-out (clang)')
+        if any([x in self.getCompiler() for x in ["gcc", "icpc", "icl"]]):
+            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 (gcc)')
+            self.step_out_destination = line_number('main.cpp', '// Expect to stop here after step-out (clang)')
 
     def step_out_single_thread_with_cmd(self):
         self.step_out_with_cmd("this-thread")
index f6a9732903b3641745c65081cc4b38f2dcf86468..eb390d5de2ec92c77e0dfdaabe80880011dc024e 100644 (file)
@@ -43,7 +43,7 @@ thread_func (void *input)
     step_out_of_here(); // Expect to stop here after step-out (clang)
 
     // Return
-    return NULL;  // Expect to stop here after step-out (gcc)
+    return NULL;  // Expect to stop here after step-out (icc and gcc)
 }
 
 int main ()