summaryrefslogtreecommitdiffstats
path: root/testsuites/samples
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2017-10-19 16:39:16 +1100
committerChris Johns <chrisj@rtems.org>2017-10-23 16:25:45 +1100
commit98c6d501452f02264ff148a1b8479e420c81562d (patch)
tree8c6cd90ccd1df98f782396d94d6acdbfe5d042cb /testsuites/samples
parentposix: Fix POSIX disabled build (diff)
downloadrtems-98c6d501452f02264ff148a1b8479e420c81562d.tar.bz2
testsuite: Use printk for all test output where possible.
- Remove the printf support leaving the direct printk support configured with TESTS_USE_PRINTK and all other output goes via a buffered vsniprintf call to printk. - Control the test's single init for functions and global data with TEST_INIT and not CONFIGURE_INIT. They are now separate. Updates #3170.
Diffstat (limited to 'testsuites/samples')
-rw-r--r--testsuites/samples/base_mp/init.c2
-rw-r--r--testsuites/samples/base_sp/init.c2
-rw-r--r--testsuites/samples/capture/init.c2
-rw-r--r--testsuites/samples/cdtest/init.c2
-rw-r--r--testsuites/samples/fileio/init.c2
-rw-r--r--testsuites/samples/nsecs/init.c2
-rw-r--r--testsuites/samples/paranoia/init.c2
-rw-r--r--testsuites/samples/pppd/init.c2
-rw-r--r--testsuites/samples/ticker/init.c2
-rw-r--r--testsuites/samples/unlimited/init.c2
10 files changed, 20 insertions, 0 deletions
diff --git a/testsuites/samples/base_mp/init.c b/testsuites/samples/base_mp/init.c
index 901dc83a9b..9986d3c57c 100644
--- a/testsuites/samples/base_mp/init.c
+++ b/testsuites/samples/base_mp/init.c
@@ -11,6 +11,8 @@
#include "config.h"
#endif
+#define TEST_INIT
+
#define CONFIGURE_INIT
#include "system.h"
#include <stdio.h>
diff --git a/testsuites/samples/base_sp/init.c b/testsuites/samples/base_sp/init.c
index b1cb4d90a6..48dbf79d1e 100644
--- a/testsuites/samples/base_sp/init.c
+++ b/testsuites/samples/base_sp/init.c
@@ -11,6 +11,8 @@
#include "config.h"
#endif
+#define TEST_INIT
+
#define CONFIGURE_INIT
#include "system.h"
#include "tmacros.h"
diff --git a/testsuites/samples/capture/init.c b/testsuites/samples/capture/init.c
index 557e8094c2..4893274254 100644
--- a/testsuites/samples/capture/init.c
+++ b/testsuites/samples/capture/init.c
@@ -13,6 +13,8 @@
#include "config.h"
#endif
+#define TEST_INIT
+
#include "system.h"
#include <stdio.h>
#include <stdlib.h>
diff --git a/testsuites/samples/cdtest/init.c b/testsuites/samples/cdtest/init.c
index 1cf2b20f77..b5ea093a51 100644
--- a/testsuites/samples/cdtest/init.c
+++ b/testsuites/samples/cdtest/init.c
@@ -11,6 +11,8 @@
#include "config.h"
#endif
+#define TEST_INIT
+
#define CONFIGURE_INIT
#include "system.h"
#include <stdio.h>
diff --git a/testsuites/samples/fileio/init.c b/testsuites/samples/fileio/init.c
index 433266a99f..7158ab1f42 100644
--- a/testsuites/samples/fileio/init.c
+++ b/testsuites/samples/fileio/init.c
@@ -11,6 +11,8 @@
#include "config.h"
#endif
+#define TEST_INIT
+
#define CONFIGURE_INIT
#include "system.h"
#include <sys/param.h>
diff --git a/testsuites/samples/nsecs/init.c b/testsuites/samples/nsecs/init.c
index 59995f1da8..7e4e2090e1 100644
--- a/testsuites/samples/nsecs/init.c
+++ b/testsuites/samples/nsecs/init.c
@@ -17,6 +17,8 @@
#include "config.h"
#endif
+#define TEST_INIT
+
#include <rtems.h>
#include <inttypes.h>
#include <stdio.h>
diff --git a/testsuites/samples/paranoia/init.c b/testsuites/samples/paranoia/init.c
index ac7c2148c0..60aaefc2bb 100644
--- a/testsuites/samples/paranoia/init.c
+++ b/testsuites/samples/paranoia/init.c
@@ -11,6 +11,8 @@
#include "config.h"
#endif
+#define TEST_INIT
+
#define CONFIGURE_INIT
#include "system.h"
#include <stdio.h>
diff --git a/testsuites/samples/pppd/init.c b/testsuites/samples/pppd/init.c
index a8daedc291..e8bd7c37ca 100644
--- a/testsuites/samples/pppd/init.c
+++ b/testsuites/samples/pppd/init.c
@@ -11,6 +11,8 @@
#include "config.h"
#endif
+#define TEST_INIT
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/testsuites/samples/ticker/init.c b/testsuites/samples/ticker/init.c
index 3f3cbd8359..1b9ae9678d 100644
--- a/testsuites/samples/ticker/init.c
+++ b/testsuites/samples/ticker/init.c
@@ -11,6 +11,8 @@
#include "config.h"
#endif
+#define TEST_INIT
+
#define CONFIGURE_INIT
#include "system.h"
diff --git a/testsuites/samples/unlimited/init.c b/testsuites/samples/unlimited/init.c
index 002a9736e4..0466e3dd88 100644
--- a/testsuites/samples/unlimited/init.c
+++ b/testsuites/samples/unlimited/init.c
@@ -13,6 +13,8 @@
#define CONFIGURE_INIT
+#define TEST_INIT
+
#include "system.h"
#include "tmacros.h"
#include <stdio.h>