Created
June 10, 2020 22:03
-
-
Save kaspar030/90a8a20e73643deca921fd423d4620fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tests/thread_msg_seq/main.c b/tests/thread_msg_seq/main.c | |
index d830323815..3b93f7cfb2 100644 | |
--- a/tests/thread_msg_seq/main.c | |
+++ b/tests/thread_msg_seq/main.c | |
@@ -57,14 +57,13 @@ int main(void) | |
p_main = sched_active_pid; | |
p1 = thread_create(t1_stack, sizeof(t1_stack), THREAD_PRIORITY_MAIN - 1, | |
- THREAD_CREATE_WOUT_YIELD | THREAD_CREATE_STACKTEST, | |
- sub_thread, "nr1", "nr1"); | |
+ THREAD_CREATE_STACKTEST, sub_thread, "nr1", "nr1"); | |
+ | |
p2 = thread_create(t2_stack, sizeof(t2_stack), THREAD_PRIORITY_MAIN - 1, | |
- THREAD_CREATE_WOUT_YIELD | THREAD_CREATE_STACKTEST, | |
- sub_thread, "nr2", "nr2"); | |
+ THREAD_CREATE_STACKTEST, sub_thread, "nr2", "nr2"); | |
+ | |
p3 = thread_create(t3_stack, sizeof(t3_stack), THREAD_PRIORITY_MAIN - 1, | |
- THREAD_CREATE_WOUT_YIELD | THREAD_CREATE_STACKTEST, | |
- sub_thread, "nr3", "nr3"); | |
+ THREAD_CREATE_STACKTEST, sub_thread, "nr3", "nr3"); | |
puts("THREADS CREATED\n"); | |
for(int i = 0; i < 3; i++) { | |
diff --git a/tests/thread_msg_seq/tests/01-run.py b/tests/thread_msg_seq/tests/01-run.py | |
index 4d4e78ef21..6b9c53be8b 100755 | |
--- a/tests/thread_msg_seq/tests/01-run.py | |
+++ b/tests/thread_msg_seq/tests/01-run.py | |
@@ -6,11 +6,11 @@ from testrunner import run | |
def testfunc(child): | |
child.expect_exact("START") | |
- child.expect_exact("THREADS CREATED") | |
child.expect_exact("THREAD nr1 (pid:3) start") | |
- child.expect_exact("THREAD nr1 (pid:3) end.") | |
child.expect_exact("THREAD nr2 (pid:4) start") | |
child.expect_exact("THREAD nr3 (pid:5) start") | |
+ child.expect_exact("THREADS CREATED") | |
+ child.expect_exact("THREAD nr1 (pid:3) end.") | |
child.expect_exact("Got msg from pid 3: \"nr1\"") | |
child.expect_exact("THREAD nr2 (pid:4) end.") | |
child.expect_exact("Got msg from pid 4: \"nr2\"") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment