[rtems-libbsd commit] Use floating-point tasks for tests
Sebastian Huber
sebh at rtems.org
Fri Dec 20 10:16:35 UTC 2013
Module: rtems-libbsd
Branch: master
Commit: 4b8bc5cfd6c8c995a5e3027936dc7cd291d5b28e
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=4b8bc5cfd6c8c995a5e3027936dc7cd291d5b28e
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Dec 5 13:58:42 2013 +0100
Use floating-point tasks for tests
---
testsuite/include/rtems/bsd/test/default-init.h | 1 +
.../include/rtems/bsd/test/default-network-init.h | 1 +
testsuite/rwlock01/test_main.c | 2 +-
testsuite/selectpollkqueue01/test_main.c | 2 +-
testsuite/sleep01/test_main.c | 2 +-
testsuite/swi01/init.c | 2 ++
testsuite/syscalls01/test_main.c | 2 +-
testsuite/thread01/test_main.c | 2 +-
testsuite/timeout01/init.c | 2 ++
testsuite/usb01/init.c | 4 +++-
10 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/testsuite/include/rtems/bsd/test/default-init.h b/testsuite/include/rtems/bsd/test/default-init.h
index 788ba71..8af4477 100644
--- a/testsuite/include/rtems/bsd/test/default-init.h
+++ b/testsuite/include/rtems/bsd/test/default-init.h
@@ -85,6 +85,7 @@ rtems_task Init(
#define CONFIGURE_INIT_TASK_STACK_SIZE (128 * 1024)
#define CONFIGURE_INIT_TASK_INITIAL_MODES RTEMS_DEFAULT_MODES
+#define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_FLOATING_POINT
#define CONFIGURE_INIT
#include <rtems/confdefs.h>
diff --git a/testsuite/include/rtems/bsd/test/default-network-init.h b/testsuite/include/rtems/bsd/test/default-network-init.h
index b04a290..a937d90 100644
--- a/testsuite/include/rtems/bsd/test/default-network-init.h
+++ b/testsuite/include/rtems/bsd/test/default-network-init.h
@@ -185,6 +185,7 @@ Init(rtems_task_argument arg)
#define CONFIGURE_INIT_TASK_STACK_SIZE (32 * 1024)
#define CONFIGURE_INIT_TASK_INITIAL_MODES RTEMS_DEFAULT_MODES
+#define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_FLOATING_POINT
#define CONFIGURE_INIT
diff --git a/testsuite/rwlock01/test_main.c b/testsuite/rwlock01/test_main.c
index 2f5efaf..fc4b269 100644
--- a/testsuite/rwlock01/test_main.c
+++ b/testsuite/rwlock01/test_main.c
@@ -151,7 +151,7 @@ start_worker(test_context *ctx)
PRIO_WORKER,
RTEMS_MINIMUM_STACK_SIZE,
RTEMS_DEFAULT_MODES,
- RTEMS_DEFAULT_ATTRIBUTES,
+ RTEMS_FLOATING_POINT,
&ctx->worker_task
);
assert(sc == RTEMS_SUCCESSFUL);
diff --git a/testsuite/selectpollkqueue01/test_main.c b/testsuite/selectpollkqueue01/test_main.c
index 0475d4d..ddbd2ef 100644
--- a/testsuite/selectpollkqueue01/test_main.c
+++ b/testsuite/selectpollkqueue01/test_main.c
@@ -264,7 +264,7 @@ start_worker(test_context *ctx)
PRIO_WORKER,
RTEMS_MINIMUM_STACK_SIZE,
RTEMS_DEFAULT_MODES,
- RTEMS_DEFAULT_ATTRIBUTES,
+ RTEMS_FLOATING_POINT,
&ctx->worker_task
);
assert(sc == RTEMS_SUCCESSFUL);
diff --git a/testsuite/sleep01/test_main.c b/testsuite/sleep01/test_main.c
index 8dbfad1..08b7dcd 100644
--- a/testsuite/sleep01/test_main.c
+++ b/testsuite/sleep01/test_main.c
@@ -109,7 +109,7 @@ start_slaves(void)
slave_prios[i],
RTEMS_MINIMUM_STACK_SIZE,
RTEMS_DEFAULT_MODES,
- RTEMS_DEFAULT_ATTRIBUTES,
+ RTEMS_FLOATING_POINT,
&slave_ids[i]
);
assert(sc == RTEMS_SUCCESSFUL);
diff --git a/testsuite/swi01/init.c b/testsuite/swi01/init.c
index d3d1917..0108f6c 100644
--- a/testsuite/swi01/init.c
+++ b/testsuite/swi01/init.c
@@ -77,6 +77,8 @@ static void Init(rtems_task_argument arg)
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+#define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_FLOATING_POINT
+
#define CONFIGURE_STACK_CHECKER_ENABLED
#define CONFIGURE_INIT
diff --git a/testsuite/syscalls01/test_main.c b/testsuite/syscalls01/test_main.c
index 07b7381..a565179 100644
--- a/testsuite/syscalls01/test_main.c
+++ b/testsuite/syscalls01/test_main.c
@@ -293,7 +293,7 @@ do_no_mem_test(no_mem_test_body body, int fd)
RTEMS_MINIMUM_PRIORITY,
RTEMS_MINIMUM_STACK_SIZE,
RTEMS_DEFAULT_MODES,
- RTEMS_DEFAULT_ATTRIBUTES,
+ RTEMS_FLOATING_POINT,
&id
);
assert(sc == RTEMS_SUCCESSFUL);
diff --git a/testsuite/thread01/test_main.c b/testsuite/thread01/test_main.c
index 27f8c73..2891e3f 100644
--- a/testsuite/thread01/test_main.c
+++ b/testsuite/thread01/test_main.c
@@ -118,7 +118,7 @@ test_non_bsd_thread(void)
RTEMS_MINIMUM_PRIORITY,
RTEMS_MINIMUM_STACK_SIZE,
RTEMS_DEFAULT_MODES,
- RTEMS_DEFAULT_ATTRIBUTES,
+ RTEMS_FLOATING_POINT,
&task_id
);
assert(sc == RTEMS_SUCCESSFUL);
diff --git a/testsuite/timeout01/init.c b/testsuite/timeout01/init.c
index d6776fe..efab075 100644
--- a/testsuite/timeout01/init.c
+++ b/testsuite/timeout01/init.c
@@ -77,6 +77,8 @@ static void Init(rtems_task_argument arg)
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+#define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_FLOATING_POINT
+
#define CONFIGURE_STACK_CHECKER_ENABLED
#define CONFIGURE_INIT
diff --git a/testsuite/usb01/init.c b/testsuite/usb01/init.c
index d2e11e8..fb054ce 100644
--- a/testsuite/usb01/init.c
+++ b/testsuite/usb01/init.c
@@ -235,7 +235,7 @@ static void Init(rtems_task_argument arg)
95 + 10 * (i % 4),
32 * 1024,
RTEMS_DEFAULT_MODES,
- RTEMS_DEFAULT_ATTRIBUTES,
+ RTEMS_FLOATING_POINT,
&id
);
ASSERT_SC(sc);
@@ -302,6 +302,8 @@ static void Init(rtems_task_argument arg)
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+#define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_FLOATING_POINT
+
#define CONFIGURE_STACK_CHECKER_ENABLED
#define CONFIGURE_INIT
More information about the vc
mailing list