[Lldb-commits] [lldb] r187389 - Fix TestConcurrentEvents to behave nicely with GCC 4.8
Daniel Malea
daniel.malea at intel.com
Mon Jul 29 16:13:09 PDT 2013
Author: dmalea
Date: Mon Jul 29 18:13:08 2013
New Revision: 187389
URL: http://llvm.org/viewvc/llvm-project?rev=187389&view=rev
Log:
Fix TestConcurrentEvents to behave nicely with GCC 4.8
- newer gcc generates additional debuginfo for function exit (stack object desctruction) which was causing tests to fail
- work-around consists of not declaring any stack objects in main()
Modified:
lldb/trunk/test/functionalities/thread/concurrent_events/main.cpp
Modified: lldb/trunk/test/functionalities/thread/concurrent_events/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/concurrent_events/main.cpp?rev=187389&r1=187388&r2=187389&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/thread/concurrent_events/main.cpp (original)
+++ lldb/trunk/test/functionalities/thread/concurrent_events/main.cpp Mon Jul 29 18:13:08 2013
@@ -132,7 +132,7 @@ void start_threads(thread_vector& thread
}
}
-int main ()
+int dotest()
{
g_watchme = 0;
@@ -188,5 +188,13 @@ int main ()
for(thread_iterator t = threads.begin(); t != threads.end(); ++t)
pthread_join(*t, 0);
+ return 0;
+}
+
+int main ()
+{
+ dotest();
return 0; // Break here and verify one thread is active.
}
+
+
More information about the lldb-commits
mailing list