summaryrefslogtreecommitdiffstats
path: root/c/src/tests/samples
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-07-31 22:04:17 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-07-31 22:04:17 +0000
commit91333c27bdc98ea872c97ec41be98fab5de4e442 (patch)
tree6a5e3d36ef87ef4fa8f6316252c58855fcf50fd1 /c/src/tests/samples
parent13f09e64e56cb2bda93cbcdd3c71afc361a6ab6d (diff)
downloadrtems-91333c27bdc98ea872c97ec41be98fab5de4e442.tar.bz2
Merged very large and much appreciated patch from Chris Johns
<cjohns@plessey.com.au>. This patch includes the ods68302 bsp, the RTEMS++ class library, and the rtems++ test.
Diffstat (limited to 'c/src/tests/samples')
-rw-r--r--c/src/tests/samples/cdtest/Makefile.in2
-rw-r--r--c/src/tests/samples/cdtest/main.cc6
2 files changed, 7 insertions, 1 deletions
diff --git a/c/src/tests/samples/cdtest/Makefile.in b/c/src/tests/samples/cdtest/Makefile.in
index 75529f072b..69e164bbc7 100644
--- a/c/src/tests/samples/cdtest/Makefile.in
+++ b/c/src/tests/samples/cdtest/Makefile.in
@@ -41,7 +41,7 @@ include $(PROJECT_ROOT)/make/leaf.cfg
#
DEFINES +=
-CPPFLAGS +=
+CPPFLAGS += -I$(LIBCC_INCLUDE)
CFLAGS +=
LD_PATHS +=
diff --git a/c/src/tests/samples/cdtest/main.cc b/c/src/tests/samples/cdtest/main.cc
index d55f96e9f0..e7b3cd02b3 100644
--- a/c/src/tests/samples/cdtest/main.cc
+++ b/c/src/tests/samples/cdtest/main.cc
@@ -21,7 +21,9 @@
#include <rtems.h>
#include <stdio.h>
+#ifdef RTEMS_TEST_IO_STREAM
#include <iostream.h>
+#endif
extern "C" {
extern rtems_task main_task(rtems_task_argument);
@@ -108,7 +110,11 @@ cdtest(void)
A bar, blech, blah;
B bleak;
+#ifdef RTEMS_TEST_IO_STREAM
cout << "Testing a C++ I/O stream" << endl;
+#else
+ printf("IO Stream not tested\n");
+#endif
bar = blech;
}