summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spcontext01/init.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-06-03 10:07:23 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-06-03 10:07:23 +0200
commitb276507552744bba55017ef82a43afc3a6f63b6d (patch)
tree002f8cba3558833ae150b96a807b85cf1fcb1594 /testsuites/sptests/spcontext01/init.c
parentrtems: Change CONTEXT_FP_SIZE define (diff)
downloadrtems-b276507552744bba55017ef82a43afc3a6f63b6d.tar.bz2
sptests/spcontext01: Improve output
Diffstat (limited to '')
-rw-r--r--testsuites/sptests/spcontext01/init.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/testsuites/sptests/spcontext01/init.c b/testsuites/sptests/spcontext01/init.c
index b0691ecaba..67910c41c8 100644
--- a/testsuites/sptests/spcontext01/init.c
+++ b/testsuites/sptests/spcontext01/init.c
@@ -238,6 +238,16 @@ static void test_context_is_executing(void)
#endif
}
+static bool is_fp(int i)
+{
+ return i != 0;
+}
+
+static const char *desc(int i)
+{
+ return is_fp(i) ? "F" : "N";
+}
+
static void Init(rtems_task_argument arg)
{
test_context *self = &test_instance;
@@ -252,8 +262,8 @@ static void Init(rtems_task_argument arg)
for (i = 0; i < 2; ++i) {
for (j = 0; j < 2; ++j) {
for (k = 0; k < 2; ++k) {
- printf("Test configuration %d %d %d... ", i, j, k);
- test(self, i == 0, j == 0, k == 0);
+ printf("Test configuration %s %s %s... ", desc(i), desc(j), desc(k));
+ test(self, is_fp(i), is_fp(j), is_fp(k));
printf("done\n");
}
}