summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/thread
diff options
context:
space:
mode:
authorDaniel Malea <daniel.malea@intel.com>2013-07-29 23:13:08 +0000
committerDaniel Malea <daniel.malea@intel.com>2013-07-29 23:13:08 +0000
commit4d3de853a2c944a658d3e8470341da75c217fdaa (patch)
treef9874d1e66f6a7c79f5dc4e345b50783742ce52e /lldb/test/functionalities/thread
parentb469aeb164190b37680cb9da39169e159a4ef9bd (diff)
downloadbcm5719-llvm-4d3de853a2c944a658d3e8470341da75c217fdaa.tar.gz
bcm5719-llvm-4d3de853a2c944a658d3e8470341da75c217fdaa.zip
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() llvm-svn: 187389
Diffstat (limited to 'lldb/test/functionalities/thread')
-rw-r--r--lldb/test/functionalities/thread/concurrent_events/main.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/lldb/test/functionalities/thread/concurrent_events/main.cpp b/lldb/test/functionalities/thread/concurrent_events/main.cpp
index db001557a32..83233d5ac01 100644
--- a/lldb/test/functionalities/thread/concurrent_events/main.cpp
+++ b/lldb/test/functionalities/thread/concurrent_events/main.cpp
@@ -132,7 +132,7 @@ void start_threads(thread_vector& threads,
}
}
-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.
}
+
+
OpenPOWER on IntegriCloud