TestConcurrentEvents - delay threads not working
authorVince Harron <vharron@google.com>
Thu, 13 Nov 2014 04:00:23 +0000 (04:00 +0000)
committerVince Harron <vharron@google.com>
Thu, 13 Nov 2014 04:00:23 +0000 (04:00 +0000)
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.

llvm-svn: 221859

lldb/test/functionalities/thread/concurrent_events/main.cpp

index 0733e4c..ac2535c 100644 (file)
@@ -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;