summaryrefslogtreecommitdiff
path: root/src/unittest/circletest.cc
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2008-10-02 11:27:01 -0700
committerNathan Binkert <nate@binkert.org>2008-10-02 11:27:01 -0700
commitb25755993bbc04be0235975e2967533995a493f0 (patch)
tree3295891b4f535535dce20c2f51c4402aba025a2a /src/unittest/circletest.cc
parent52493b27202fb61aaae74779ebcd91ca8f2bbc2c (diff)
downloadgem5-b25755993bbc04be0235975e2967533995a493f0.tar.xz
unittest: Add unit tests to the scons framework.
Also fix the unit tests so they actually compile correctly.
Diffstat (limited to 'src/unittest/circletest.cc')
-rw-r--r--src/unittest/circletest.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/unittest/circletest.cc b/src/unittest/circletest.cc
index c6fce0f8f..2ee75b6df 100644
--- a/src/unittest/circletest.cc
+++ b/src/unittest/circletest.cc
@@ -29,12 +29,13 @@
*/
#include <fcntl.h>
-#include <iostream.h>
#include <unistd.h>
+#include <iostream>
+
#include "base/circlebuf.hh"
-char *strings[] = {
+const char *strings[] = {
"This is the first test\n",
"he went with his woman to the store\n",
"the man with the bat hit the woman with the hat\n",