From ed8eb8871b9d4be26dcede32c55fbf1a1d11c7ae Mon Sep 17 00:00:00 2001
From: Roberto Hexsel <roberto@inf.ufpr.br>
Date: Thu, 23 Jun 2016 11:19:00 -0300
Subject: [PATCH] fix to count.expected

---
 cMIPS/tests/count.c        | 6 +++---
 cMIPS/tests/count.expected | 1 +
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/cMIPS/tests/count.c b/cMIPS/tests/count.c
index d0f644b..0b1ef6e 100644
--- a/cMIPS/tests/count.c
+++ b/cMIPS/tests/count.c
@@ -1,5 +1,5 @@
 //-------------------------------------------------------------------------
-// test if COUNT register counts up monotonically as it should
+// test if COUNT register counts up monotonically
 // returns error if the time to compute every 11th element of the Fibonacci
 //    sequence, as measured by COUNT is not monotonically increasing
 //-------------------------------------------------------------------------
@@ -51,17 +51,17 @@ int main() {
   // print(new);
   to_stdout('o'); to_stdout('k'); to_stdout('\n');
 
+  to_stdout('\n');  // separate tests
 
   // now disable COUNT and make sure that it has stopped
   print( stopCount() );          // stop COUNT
   old = readCount();             // COUNT before computing fib(i)
   print( fibonacci(5) );
-  new = readCount();           // COUNT after  computing fib(i)
+  new = readCount();             // COUNT after  computing fib(i)
   monotonic = monotonic && ( (new - old) > 0 );
   if ( monotonic == TRUE ) {
     to_stdout('e'); to_stdout('r'); to_stdout('r'); to_stdout('\n');
     print(new);
-    exit(new);
   } else {
     // print(new);
     to_stdout('o'); to_stdout('k'); to_stdout('\n');
diff --git a/cMIPS/tests/count.expected b/cMIPS/tests/count.expected
index 4da7552..8911d00 100644
--- a/cMIPS/tests/count.expected
+++ b/cMIPS/tests/count.expected
@@ -4,6 +4,7 @@
 0000452f
 0035c7e2
 ok
+
 0880007c
 00000005
 ok
-- 
GitLab