userland: move some multithreaded examples from cpp-cheat

Using them mostly to evaluate how well the emulators are handling user
mode multithreading.
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-07-19 00:00:03 +00:00
parent 369a47fc6e
commit d205140557
10 changed files with 364 additions and 12 deletions

1
run
View File

@@ -809,7 +809,6 @@ Extra options to append at the end of the emulator command line.
match = re.search(b'Simulated exit code not 0! Exit code is (\d+)', last_line)
if match is not None:
exit_status = int(match.group(1))
print(repr(last_line))
if re.search(b'Exiting @ tick \d+ because simulate\(\) limit reached', last_line) is not None:
exit_status = 1
if not self.env['userland']: