| /llvm-project-15.0.7/lldb/unittests/Utility/ |
| H A D | ListenerTest.cpp | 29 const std::chrono::seconds timeout(0); in TEST() local 31 EXPECT_FALSE(listener_sp->GetEvent(event_sp, timeout)); in TEST() 36 &broadcaster, event_mask, event_sp, timeout)); in TEST() 40 EXPECT_TRUE(listener_sp->GetEvent(event_sp, timeout)); in TEST() 51 &broadcaster, event_mask * 2, event_sp, timeout)); in TEST() 53 &broadcaster, event_mask, event_sp, timeout)); in TEST() 67 std::chrono::microseconds timeout(10); in TEST() local 73 &broadcaster, event_mask, event_sp, timeout)); in TEST() 77 EXPECT_TRUE(listener_sp->GetEvent(event_sp, timeout)); in TEST() 88 &broadcaster, event_mask * 2, event_sp, timeout)); in TEST() [all …]
|
| H A D | BroadcasterTest.cpp | 24 std::chrono::seconds timeout(0); in TEST() local 32 EXPECT_TRUE(listener1_sp->GetEvent(event_sp, timeout)); in TEST() 42 EXPECT_TRUE(listener2_sp->GetEvent(event_sp, timeout)); in TEST() 47 EXPECT_TRUE(listener1_sp->GetEvent(event_sp, timeout)); in TEST() 49 EXPECT_TRUE(listener2_sp->GetEvent(event_sp, timeout)); in TEST() 55 EXPECT_TRUE(listener1_sp->GetEvent(event_sp, timeout)); in TEST()
|
| /llvm-project-15.0.7/lldb/third_party/Python/module/pexpect-4.6/pexpect/ |
| H A D | utils.py | 139 if timeout is not None: 140 end_time = time.time() + timeout 149 if timeout is not None: 150 timeout = end_time - time.time() 151 if timeout < 0: 159 def poll_ignore_interrupts(fds, timeout=None): argument 163 if timeout is not None: 164 end_time = time.time() + timeout 172 timeout_ms = None if timeout is None else timeout * 1000 180 if timeout is not None: [all …]
|
| H A D | spawnbase.py | 52 self.timeout = timeout 341 timeout, searchwindowsize, async_) 357 if timeout == -1: 358 timeout = self.timeout 367 return expect_async(exp, timeout) 369 return exp.expect_loop(timeout) 389 if timeout == -1: 390 timeout = self.timeout 416 return expect_async(exp, timeout) 418 return exp.expect_loop(timeout) [all …]
|
| H A D | pxssh.py | 118 def __init__ (self, timeout=30, maxread=2000, searchwindowsize=None, argument 123 spawn.__init__(self, None, timeout=timeout, maxread=maxread, 203 timeout = first_char_timeout 207 prompt += self.read_nonblocking(size=1, timeout=timeout) 209 timeout = inter_char_timeout 449 def prompt(self, timeout=-1): argument 466 if timeout == -1: 467 timeout = self.timeout 468 i = self.expect([self.PROMPT, TIMEOUT], timeout=timeout) 491 i = self.expect ([TIMEOUT, self.PROMPT], timeout=10) [all …]
|
| H A D | replwrap.py | 64 def _expect_prompt(self, timeout=-1): argument 66 timeout=timeout) 68 def run_command(self, command, timeout=-1): argument 90 self._expect_prompt(timeout=timeout) 95 if self._expect_prompt(timeout=timeout) == 1: 98 self._expect_prompt(timeout=1)
|
| H A D | pty_spawn.py | 189 … super(spawn, self).__init__(timeout=timeout, maxread=maxread, searchwindowsize=searchwindowsize, 343 def waitnoecho(self, timeout=-1): argument 360 if timeout == -1: 361 timeout = self.timeout 362 if timeout is not None: 363 end_time = time.time() + timeout 367 if timeout < 0 and timeout is not None: 369 if timeout is not None: 370 timeout = end_time - time.time() 439 if timeout == -1: [all …]
|
| H A D | fdpexpect.py | 36 def __init__ (self, fd, args=None, timeout=30, maxread=2000, searchwindowsize=None, argument 55 SpawnBase.__init__(self, timeout, maxread, searchwindowsize, logfile, 118 def read_nonblocking(self, size=1, timeout=-1): argument 135 if timeout == -1: 136 timeout = self.timeout 141 rlist = poll_ignore_interrupts(rlist, timeout) 144 rlist, wlist, xlist, timeout
|
| H A D | popen_spawn.py | 21 def __init__(self, cmd, timeout=30, maxread=2000, searchwindowsize=None, argument 24 super(PopenSpawn, self).__init__(timeout=timeout, maxread=maxread, 65 def read_nonblocking(self, size, timeout): argument 77 if timeout == -1: 78 timeout = self.timeout 79 elif timeout is None: 80 timeout = 1e6 83 while (time.time() - t0) < timeout and size and len(buf) < size:
|
| H A D | run.py | 7 def run(command, timeout=30, withexitstatus=False, events=None, argument 95 if timeout == -1: 99 child = spawn(command, timeout=timeout, maxread=2000, logfile=logfile, 150 def runu(command, timeout=30, withexitstatus=False, events=None, argument 155 return run(command, timeout=timeout, withexitstatus=withexitstatus,
|
| H A D | expect.py | 65 def timeout(self, err=None): member in Expecter 91 def expect_loop(self, timeout=-1): argument 95 if timeout is not None: 96 end_time = time.time() + timeout 108 if (timeout is not None) and (timeout < 0): 109 return self.timeout() 111 incoming = spawn.read_nonblocking(spawn.maxread, timeout) 114 if timeout is not None: 115 timeout = end_time - time.time() 119 return self.timeout(e)
|
| /llvm-project-15.0.7/compiler-rt/test/fuzzer/ |
| H A D | fuzzer-timeout.test | 3 RUN: not %run %t-TimeoutTest -timeout=1 2>&1 | FileCheck %s --check-prefix=TimeoutTest 5 TimeoutTest: Test unit written to ./timeout- 6 TimeoutTest: == ERROR: libFuzzer: timeout after 10 TimeoutTest: SUMMARY: libFuzzer: timeout 12 RUN: not %run %t-TimeoutTest -timeout=1 %S/hi.txt 2>&1 | FileCheck %s --check-prefix=SingleInputTim… 14 SingleInputTimeoutTest-NOT: Test unit written to ./timeout- 16 RUN: %run %t-TimeoutTest -timeout=1 -timeout_exitcode=0 18 RUN: not %run %t-TimeoutEmptyTest -timeout=1 2>&1 | FileCheck %s --check-prefix=TimeoutEmptyTest 20 TimeoutEmptyTest: == ERROR: libFuzzer: timeout after 21 TimeoutEmptyTest: SUMMARY: libFuzzer: timeout
|
| H A D | equivalence-signals.test | 2 # Run EquivalenceATest against itself with a small timeout 11 RUN: %run %t-EquivalenceATest -timeout=1 -run_equivalence_server=EQ_SIG_TEST & export APID=$! 13 RUN: %run %t-EquivalenceATest -timeout=1 -use_equivalence_server=EQ_SIG_TEST -runs=500000 2>&1
|
| /llvm-project-15.0.7/llvm/utils/lit/lit/ |
| H A D | run.py | 20 max_failures, timeout): argument 26 self.timeout = timeout 51 timeout = self.timeout or one_week 52 deadline = time.time() + timeout 87 timeout = deadline - time.time() 90 test = ar.get(timeout)
|
| /llvm-project-15.0.7/lldb/include/lldb/Utility/ |
| H A D | Predicate.h | 121 llvm::Optional<T> WaitFor(C Cond, const Timeout<std::micro> &timeout) { in WaitFor() argument 124 if (!timeout) { in WaitFor() 128 if (m_condition.wait_for(lock, *timeout, RealCond)) in WaitFor() 155 const Timeout<std::micro> &timeout = llvm::None) { 156 return WaitFor([&value](T current) { return value == current; }, timeout) != 183 const Timeout<std::micro> &timeout = llvm::None) { 184 return WaitFor([&value](T current) { return value != current; }, timeout);
|
| /llvm-project-15.0.7/lldb/tools/lldb-vscode/ |
| H A D | FifoFiles.cpp | 52 Expected<json::Value> FifoFileIO::ReadJSON(std::chrono::milliseconds timeout) { in ReadJSON() argument 64 if (future->wait_for(timeout) == std::future_status::timeout || !line) in ReadJSON() 73 std::chrono::milliseconds timeout) { in SendJSON() argument 81 if (future->wait_for(timeout) == std::future_status::timeout || !done) { in SendJSON()
|
| /llvm-project-15.0.7/lldb/source/API/ |
| H A D | SBExpressionOptions.cpp | 94 void SBExpressionOptions::SetTimeoutInMicroSeconds(uint32_t timeout) { in SetTimeoutInMicroSeconds() argument 95 LLDB_INSTRUMENT_VA(this, timeout); in SetTimeoutInMicroSeconds() 97 m_opaque_up->SetTimeout(timeout == 0 ? Timeout<std::micro>(llvm::None) in SetTimeoutInMicroSeconds() 98 : std::chrono::microseconds(timeout)); in SetTimeoutInMicroSeconds() 109 void SBExpressionOptions::SetOneThreadTimeoutInMicroSeconds(uint32_t timeout) { in SetOneThreadTimeoutInMicroSeconds() argument 110 LLDB_INSTRUMENT_VA(this, timeout); in SetOneThreadTimeoutInMicroSeconds() 112 m_opaque_up->SetOneThreadTimeout(timeout == 0 in SetOneThreadTimeoutInMicroSeconds() 114 : std::chrono::microseconds(timeout)); in SetOneThreadTimeoutInMicroSeconds()
|
| H A D | SBListener.cpp | 135 Timeout<std::micro> timeout(llvm::None); in WaitForEvent() local 139 timeout = std::chrono::seconds(timeout_secs); in WaitForEvent() 142 if (m_opaque_sp->GetEvent(event_sp, timeout)) { in WaitForEvent() 159 Timeout<std::micro> timeout(llvm::None); in WaitForEventForBroadcaster() local 161 timeout = std::chrono::seconds(num_seconds); in WaitForEventForBroadcaster() 164 timeout)) { in WaitForEventForBroadcaster() 179 Timeout<std::micro> timeout(llvm::None); in WaitForEventForBroadcasterWithType() local 181 timeout = std::chrono::seconds(num_seconds); in WaitForEventForBroadcasterWithType() 184 broadcaster.get(), event_type_mask, event_sp, timeout)) { in WaitForEventForBroadcasterWithType()
|
| /llvm-project-15.0.7/lldb/packages/Python/lldbsuite/test/ |
| H A D | lldbpexpect.py | 26 def launch(self, executable=None, extra_args=None, timeout=60, argument 54 timeout=timeout, dimensions=dimensions, env=env) 55 self.child.ptyproc.delayafterclose = timeout/10 56 self.child.ptyproc.delayafterterminate = timeout/10
|
| /llvm-project-15.0.7/lldb/test/API/functionalities/load_after_attach/ |
| H A D | main.cpp | 15 int timeout = 10; in main() local 16 for (i = 0; i < timeout; i++) { in main() 22 assert(i != timeout && "timed out waiting for debugger"); in main()
|
| /llvm-project-15.0.7/lldb/test/API/tools/lldb-server/commandline/ |
| H A D | TestGdbRemoteConnection.py | 85 def finish_connection(self, timeout): argument 87 ctypes.byref(DWORD(0)), timeout*1000, True): 90 def read(self, size, timeout): argument 98 ctypes.byref(read), timeout*1000, True): 114 def finish_connection(self, timeout): argument 117 def read(self, size, timeout): argument 118 (readers, _, _) = select.select([self._fd], [], [], timeout)
|
| /llvm-project-15.0.7/lldb/source/Utility/ |
| H A D | Listener.cpp | 343 const Timeout<std::micro> &timeout, in GetEventInternal() argument 349 LLDB_LOG(log, "this = {0}, timeout = {1} for {2}", this, timeout, m_name); in GetEventInternal() 360 if (!timeout) in GetEventInternal() 363 result = m_events_condition.wait_for(lock, *timeout); in GetEventInternal() 365 if (result == std::cv_status::timeout) { in GetEventInternal() 384 const Timeout<std::micro> &timeout) { in GetEventForBroadcasterWithType() argument 385 return GetEventInternal(timeout, broadcaster, nullptr, 0, event_type_mask, in GetEventForBroadcasterWithType() 391 const Timeout<std::micro> &timeout) { in GetEventForBroadcaster() argument 392 return GetEventInternal(timeout, broadcaster, nullptr, 0, 0, event_sp); in GetEventForBroadcaster() 395 bool Listener::GetEvent(EventSP &event_sp, const Timeout<std::micro> &timeout) { in GetEvent() argument [all …]
|
| /llvm-project-15.0.7/llvm/utils/ |
| H A D | bisect-skip-count | 61 result = subprocess.call(cmd, shell=args.shell, timeout=args.timeout) 84 result = subprocess.call(cmd, shell=args.shell, timeout=args.timeout)
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/tool/ |
| H A D | clang-tidy-diff.py | 52 def run_tidy(task_queue, lock, timeout): argument 61 if timeout is not None: 62 watchdog = threading.Timer(timeout, proc.kill) 78 if not (timeout is None or watchdog is None): 86 def start_workers(max_tasks, tidy_caller, task_queue, lock, timeout): argument 88 t = threading.Thread(target=tidy_caller, args=(task_queue, lock, timeout)) 222 start_workers(max_task_count, run_tidy, task_queue, lock, args.timeout)
|
| /llvm-project-15.0.7/libcxx/test/std/thread/futures/futures.shared_future/ |
| H A D | wait_for.pass.cpp | 63 assert(f.wait_for(ms(1)) == std::future_status::timeout); in main() 76 assert(f.wait_for(ms(1)) == std::future_status::timeout); in main() 89 assert(f.wait_for(ms(1)) == std::future_status::timeout); in main() 104 assert(f.wait_for(ms(1)) == std::future_status::timeout); in main() 120 assert(f.wait_for(ms(1)) == std::future_status::timeout); in main() 136 assert(f.wait_for(ms(1)) == std::future_status::timeout); in main()
|