diff options
author | Daniel Malea <daniel.malea@intel.com> | 2013-07-29 23:13:08 +0000 |
---|---|---|
committer | Daniel Malea <daniel.malea@intel.com> | 2013-07-29 23:13:08 +0000 |
commit | 21f98a38a0cfa10b9935248f1b3628b5ba914402 (patch) | |
tree | 9797e72e21843ef8caeda5908a9c8471c5bb4262 | |
parent | cf88b95d435873bd312e716da5701cf3882c5da4 (diff) | |
download | lldb-21f98a38a0cfa10b9935248f1b3628b5ba914402.tar.gz |
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()
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@187389 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/functionalities/thread/concurrent_events/main.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/functionalities/thread/concurrent_events/main.cpp b/test/functionalities/thread/concurrent_events/main.cpp index db001557a..83233d5ac 100644 --- a/test/functionalities/thread/concurrent_events/main.cpp +++ b/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. } + + |