summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/dl05
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-11-15 07:55:43 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-11-15 08:10:20 +0100
commit62119d21da8c7893cecbbf57c1478dcbabb63370 (patch)
tree9370bba18fda105a2a85b81dd4a95c20793ab1f3 /testsuites/libtests/dl05
parentleon, grspw_router: Clear only error bits defined by clear mask (diff)
downloadrtems-62119d21da8c7893cecbbf57c1478dcbabb63370.tar.bz2
dl01, dl02, dl05: Fix unresolved printf symbol
The link time wrap of printf leads to unresolved symbols in the loadable modules. This resulted in infinite loops and test timeouts. Use rtems_printf() for output. Update #3199.
Diffstat (limited to 'testsuites/libtests/dl05')
-rw-r--r--testsuites/libtests/dl05/dl-o5.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/testsuites/libtests/dl05/dl-o5.cpp b/testsuites/libtests/dl05/dl-o5.cpp
index 5918e8f2d5..b70790ea7b 100644
--- a/testsuites/libtests/dl05/dl-o5.cpp
+++ b/testsuites/libtests/dl05/dl-o5.cpp
@@ -1,6 +1,11 @@
-#include <cstdio>
-#include <stdexcept>
#include "dl-load.h" /* make the symbol a C linkage */
+
+#include <stdexcept>
+
+#include <rtems/test.h>
+
+#define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
+
void exception_dl(bool throw_runtime)
{
printf("exception_dl: begin\n");