[Lldb-commits] [lldb] r221859 - TestConcurrentEvents - delay threads not working

Vince Harron vharron at google.com
Wed Nov 12 20:00:23 PST 2014


Author: vharron
Date: Wed Nov 12 22:00:23 2014
New Revision: 221859

URL: http://llvm.org/viewvc/llvm-project?rev=221859&view=rev
Log:
TestConcurrentEvents - delay threads not working

Part of TestConcurrentEvents starts threads that are supposed to be
delayed by one second.

Test was adding "delay" threads to the "actions" thread list instead
of the "delay_actions" list, which caused them to be started without
delay.



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=221859&r1=221858&r2=221859&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/thread/concurrent_events/main.cpp (original)
+++ lldb/trunk/test/functionalities/thread/concurrent_events/main.cpp Wed Nov 12 22:00:23 2014
@@ -169,10 +169,10 @@ int dotest()
     actions.push_back(std::make_pair(num_crash_threads, crash_func));
 
     action_counts delay_actions;
-    actions.push_back(std::make_pair(num_delay_breakpoint_threads, breakpoint_func));
-    actions.push_back(std::make_pair(num_delay_watchpoint_threads, watchpoint_func));
-    actions.push_back(std::make_pair(num_delay_signal_threads, signal_func));
-    actions.push_back(std::make_pair(num_delay_crash_threads, crash_func));
+    delay_actions.push_back(std::make_pair(num_delay_breakpoint_threads, breakpoint_func));
+    delay_actions.push_back(std::make_pair(num_delay_watchpoint_threads, watchpoint_func));
+    delay_actions.push_back(std::make_pair(num_delay_signal_threads, signal_func));
+    delay_actions.push_back(std::make_pair(num_delay_crash_threads, crash_func));
 
     // Create threads that handle instant actions
     thread_vector threads;





More information about the lldb-commits mailing list