freepooma-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Fix Tiny t1 test


From: Jeffrey D. Oldham
Subject: Re: [PATCH] Fix Tiny t1 test
Date: Tue, 09 Dec 2003 08:37:13 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624

Richard Guenther wrote:
Hi!

This patch properly initializes the t1 test to allow for checking in
a parallel environment.

Ok?

Yes.

Richard.


2003Dec09  Richard Guenther <address@hidden>

        * src/Tiny/tests/t1.cpp: initialize pooma library.

===== t1.cpp 1.2 vs edited =====
--- 1.2/r2/src/Tiny/tests/t1.cpp        Thu Jan 30 22:35:02 2003
+++ edited/t1.cpp       Tue Dec  9 13:43:19 2003
@@ -32,6 +32,7 @@
 #include <stdio.h>
 #include <stdlib.h>

+#include "Pooma/Pooma.h"
 #include "Utilities/Tester.h"
 #include "Tiny/TinyMatrix.h"
 #include "Tiny/Vector.h"
@@ -495,6 +496,7 @@

 int main(int argc, char **argv)
 {
+  Pooma::initialize(argc, argv);
   tester = new Pooma::Tester(argc, argv);

   testTinyMatrixDot();
@@ -519,7 +521,9 @@
   testBoundsChecking();
 #endif

-  return tester->results("t1");
+  int ret = tester->results("t1");
+  Pooma::finalize();
+  return ret;
 }

 // ACL:rcsinfo


--
Jeffrey D. Oldham
address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]