summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/iostream
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2009-04-28 05:04:11 +0000
committerChris Johns <chrisj@rtems.org>2009-04-28 05:04:11 +0000
commitc0ec0d82d3c7206d3d2cda7cf93514f22f8ac504 (patch)
treee714862f2531e56ff216c285df9131731b39cc0c /testsuites/samples/iostream
parent2009-04-28 Chris Johns <chrisj@rtems.org> (diff)
downloadrtems-c0ec0d82d3c7206d3d2cda7cf93514f22f8ac504.tar.bz2
2009-04-28 Chris Johns <chrisj@rtems.org>
* fileio/init.c, fileio/system.h, iostream/init.cc, loopback/init.c, pppd/init.c, pppd/pppdapp.c: Do not build if BSP_SMALL_MEMORY is defined. Remove this code once a better way is supported by the build system.
Diffstat (limited to 'testsuites/samples/iostream')
-rw-r--r--testsuites/samples/iostream/init.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuites/samples/iostream/init.cc b/testsuites/samples/iostream/init.cc
index 8616ff2f7c..26fb7b754b 100644
--- a/testsuites/samples/iostream/init.cc
+++ b/testsuites/samples/iostream/init.cc
@@ -23,15 +23,25 @@
#define CONFIGURE_INIT
#include "system.h"
+#if BSP_SMALL_MEMORY
+#include <stdio.h>
+#else
#include <iostream>
+#endif
+
#include <stdlib.h>
rtems_task Init(
rtems_task_argument ignored
)
{
+#if BSP_SMALL_MEMORY
+ printf ("NO STDC++. MEMORY TOO SMALL");
+#else
std::cout << "\n\n*** HELLO WORLD TEST ***" << std::endl;
std::cout << "Hello World" << std::endl;
std::cout << "*** END OF HELLO WORLD TEST ***" << std::endl;
+#endif
exit( 0 );
}
+