Module: xenomai-3
Branch: arm64
Commit: c0ce791ed24305b9d8ba8680b288ee98bbfb6eaa
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=c0ce791ed24305b9d8ba8680b288ee98bbfb6eaa

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon Aug 24 11:57:17 2015 +0200

testsuite/smokey: use default stack size in Cobalt tests

See f10d08fd92127.

---

 testsuite/smokey/posix-cond/posix-cond.c   |    1 -
 testsuite/smokey/posix-mutex/posix-mutex.c |    1 -
 testsuite/smokey/sched-quota/sched-quota.c |    2 --
 testsuite/smokey/sched-tp/sched-tp.c       |    1 -
 4 files changed, 5 deletions(-)

diff --git a/testsuite/smokey/posix-cond/posix-cond.c 
b/testsuite/smokey/posix-cond/posix-cond.c
index cea2516..5429d1f 100644
--- a/testsuite/smokey/posix-cond/posix-cond.c
+++ b/testsuite/smokey/posix-cond/posix-cond.c
@@ -139,7 +139,6 @@ static int thread_spawn(pthread_t *thread, int prio,
        param.sched_priority = prio;
        pthread_attr_setschedparam(&tattr, &param);
        pthread_attr_setdetachstate(&tattr, PTHREAD_CREATE_JOINABLE);
-       pthread_attr_setstacksize(&tattr, PTHREAD_STACK_MIN * 2);
 
        err = pthread_create(thread, &tattr, handler, cookie);
 
diff --git a/testsuite/smokey/posix-mutex/posix-mutex.c 
b/testsuite/smokey/posix-mutex/posix-mutex.c
index 173182f..8298351 100644
--- a/testsuite/smokey/posix-mutex/posix-mutex.c
+++ b/testsuite/smokey/posix-mutex/posix-mutex.c
@@ -220,7 +220,6 @@ static int dispatch(const char *service_name,
                pthread_attr_setschedparam(&threadattr, &param);
                pthread_attr_setinheritsched(&threadattr,
                                             PTHREAD_EXPLICIT_SCHED);
-               pthread_attr_setstacksize(&threadattr, PTHREAD_STACK_MIN * 2);
                handler = va_arg(ap, void *);
                status = pthread_create(thread, &threadattr, handler,
                                        va_arg(ap, void *));
diff --git a/testsuite/smokey/sched-quota/sched-quota.c 
b/testsuite/smokey/sched-quota/sched-quota.c
index 3f7a8ea..574f971 100644
--- a/testsuite/smokey/sched-quota/sched-quota.c
+++ b/testsuite/smokey/sched-quota/sched-quota.c
@@ -121,7 +121,6 @@ static void __create_quota_thread(pthread_t *tid, const 
char *name,
        param_ex.sched_priority = 1;
        param_ex.sched_quota_group = tgid;
        pthread_attr_setschedparam_ex(&attr_ex, &param_ex);
-       pthread_attr_setstacksize_ex(&attr_ex, PTHREAD_STACK_MIN * 2);
        ret = pthread_create_ex(tid, &attr_ex, thread_body, count_r);
        if (ret)
                error(1, ret, "pthread_create_ex(SCHED_QUOTA)");
@@ -146,7 +145,6 @@ static void __create_fifo_thread(pthread_t *tid, const char 
*name,
        pthread_attr_setschedpolicy(&attr, SCHED_FIFO);
        param.sched_priority = 1;
        pthread_attr_setschedparam(&attr, &param);
-       pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN * 2);
        ret = pthread_create(tid, &attr, thread_body, count_r);
        if (ret)
                error(1, ret, "pthread_create(SCHED_FIFO)");
diff --git a/testsuite/smokey/sched-tp/sched-tp.c 
b/testsuite/smokey/sched-tp/sched-tp.c
index f28de54..c15b0d9 100644
--- a/testsuite/smokey/sched-tp/sched-tp.c
+++ b/testsuite/smokey/sched-tp/sched-tp.c
@@ -114,7 +114,6 @@ static void __create_thread(pthread_t *tid, const char 
*name, int seq)
        pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);
        pthread_attr_setschedpolicy(&attr, SCHED_FIFO);
        pthread_attr_setschedparam(&attr, &param);
-       pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN * 2);
        ret = pthread_create(tid, &attr, thread_body, (void *)(long)seq);
        if (ret)
                error(1, ret, "pthread_create");


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to