]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add a test that is guaranteed to run successfully but miscompare.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 26 Feb 2010 05:55:05 +0000 (05:55 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 26 Feb 2010 05:55:05 +0000 (05:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@20702 0785d39b-7218-0410-832d-ea1e28bc413d

tests/a-framework/miscompare.cc [new file with mode: 0644]
tests/a-framework/miscompare/cmp/generic [new file with mode: 0644]

diff --git a/tests/a-framework/miscompare.cc b/tests/a-framework/miscompare.cc
new file mode 100644 (file)
index 0000000..475dab4
--- /dev/null
@@ -0,0 +1,34 @@
+//----------------------------  timer.cc  ---------------------------
+//    $Id$
+//    Version: $Name$ 
+//
+//    Copyright (C) 2010by the deal.II authors
+//
+//    This file is subject to QPL and may not be  distributed
+//    without copyright and license information. Please refer
+//    to the file deal.II/doc/license.html for the  text  and
+//    further information on this license.
+//
+//----------------------------  timer.cc  ---------------------------
+
+
+// test the testsuite framework. this test is supposed to compile successfully
+// but not run
+
+#include "../tests.h"
+#include <base/logstream.h>
+#include <fstream>
+#include <cstdlib>
+
+
+int main ()
+{
+  std::ofstream logfile("miscompare/output");
+  deallog.attach(logfile);
+  deallog.depth_console(0);
+
+  std::abort ();
+  
+  deallog << "FAIL!" << std::endl;
+}
+
diff --git a/tests/a-framework/miscompare/cmp/generic b/tests/a-framework/miscompare/cmp/generic
new file mode 100644 (file)
index 0000000..0fd8fc1
--- /dev/null
@@ -0,0 +1,2 @@
+
+DEAL::OK

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.