]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Route output into the output file, not onto the screen.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 13 Jul 2012 22:25:34 +0000 (22:25 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 13 Jul 2012 22:25:34 +0000 (22:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@25701 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/utilities_04.cc
tests/base/utilities_04/cmp/generic

index f77b25c5901b8923498a5a9281efca8bf1140695..fb654e39bffb8d419f2b116bf4df003ac6ed9c1e 100644 (file)
@@ -31,7 +31,7 @@ std::vector<std::string> split_string(const std::string &text, const char delim=
   std::stringstream stream(text);
   while( getline(stream, word, delim) )
     result.push_back(word);
-  
+
   return result;
 }
 
@@ -46,7 +46,7 @@ void test_function(const std::string &original_text,
 
   std::vector<std::string> should_be_vec
     = split_string(result);
-  
+
 
   Assert(res_vec.size()==should_be_vec.size(), ExcInternalError());
   for (unsigned int i=0;i<res_vec.size();++i)
@@ -55,9 +55,9 @@ void test_function(const std::string &original_text,
        std::cout << "'" << res_vec[i] << "!=" << should_be_vec[i] << "'" << std::endl;
       Assert(res_vec[i]==should_be_vec[i], ExcInternalError());
     }
-  
 
-  
+
+
 }
 
 
@@ -74,8 +74,8 @@ void test ()
   test_function("new\n\nline\n", 80, ' ', "new||line|");
   test_function("combining whitespace\nand new line", 10, ' ', "combining|whitespace|and new|line");
 
-  
-  deallog << "OK" << std::endl;  
+
+  deallog << "OK" << std::endl;
 }
 
 
@@ -84,8 +84,8 @@ void test ()
 int main()
 {
   std::ofstream logfile("utilities_04/output");
-//deallog.attach(logfile);
-//deallog.depth_console(0);
+  deallog.attach(logfile);
+  deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
 
   test ();
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0fd8fc12f0b442283edd8868867114c242b04d11 100644 (file)
@@ -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.