From ff7892e898ca5b06a46d163ebe50c6e6bb12eefa Mon Sep 17 00:00:00 2001 From: Oliver Hahm Date: Wed, 7 Nov 2012 13:45:25 -0500 Subject: [PATCH] [projects test_*] * fixed some tests --- projects/test_shell/tests/02-inputlength-regression | 1 + projects/test_thread_basic/Jamfile | 6 +++--- projects/test_thread_basic/main.c | 6 +++++- projects/test_thread_exit/main.c | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/projects/test_shell/tests/02-inputlength-regression b/projects/test_shell/tests/02-inputlength-regression index 0f8c9a5864..a93e3526ac 100755 --- a/projects/test_shell/tests/02-inputlength-regression +++ b/projects/test_shell/tests/02-inputlength-regression @@ -79,4 +79,5 @@ expect { timeout { exit 1 } } +sleep 1 puts "\nTest successful!\n" diff --git a/projects/test_thread_basic/Jamfile b/projects/test_thread_basic/Jamfile index 3f9c7e01da..3d1aba9d76 100644 --- a/projects/test_thread_basic/Jamfile +++ b/projects/test_thread_basic/Jamfile @@ -1,5 +1,5 @@ -SubDir TOP projects test_thread_exit ; +SubDir TOP projects test_thread_basic ; -Module test_thread_exit : main.c ; +Module test_thread_basic : main.c ; -UseModule test_thread_exit ; +UseModule test_thread_basic ; diff --git a/projects/test_thread_basic/main.c b/projects/test_thread_basic/main.c index ff95845563..02d7bbfbfd 100644 --- a/projects/test_thread_basic/main.c +++ b/projects/test_thread_basic/main.c @@ -3,12 +3,16 @@ #include #include +#define STACK_SIZE (8192) + +char t2_stack[STACK_SIZE]; + void second_thread(void) { puts("second thread\n"); } int main(void) { - int pid = thread_create(8192, PRIORITY_MAIN-1, CREATE_WOUT_YIELD | CREATE_STACKTEST, second_thread, "nr2"); + (void) thread_create(t2_stack, STACK_SIZE, PRIORITY_MAIN-1, CREATE_WOUT_YIELD | CREATE_STACKTEST, second_thread, "nr2"); puts("first thread\n"); } diff --git a/projects/test_thread_exit/main.c b/projects/test_thread_exit/main.c index 363d437a22..aec8cf48be 100644 --- a/projects/test_thread_exit/main.c +++ b/projects/test_thread_exit/main.c @@ -13,6 +13,6 @@ char second_thread_stack[8192]; int main(void) { - int pid = thread_create(second_thread_stack, sizeof(second_thread_stack), PRIORITY_MAIN-1, CREATE_WOUT_YIELD | CREATE_STACKTEST, second_thread, "nr2"); + (void) thread_create(second_thread_stack, sizeof(second_thread_stack), PRIORITY_MAIN-1, CREATE_WOUT_YIELD | CREATE_STACKTEST, second_thread, "nr2"); puts("Main thread exiting..."); }