]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix tests
authorTimo Heister <timo.heister@gmail.com>
Thu, 19 Sep 2013 20:55:47 +0000 (20:55 +0000)
committerTimo Heister <timo.heister@gmail.com>
Thu, 19 Sep 2013 20:55:47 +0000 (20:55 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30847 0785d39b-7218-0410-832d-ea1e28bc413d

tests/distributed_grids/2d_coarse_grid_04.cc
tests/distributed_grids/3d_coarse_grid_02.cc
tests/distributed_grids/3d_coarse_grid_03.cc
tests/distributed_grids/3d_coarse_grid_04.cc

index 66c4ada1dc84046d58eba13c1de6797fcf44d4f3..f92f3a52b2af336902c9d4850175371014196cc1 100644 (file)
@@ -36,7 +36,7 @@ void test(std::ostream & /*out*/)
 
   GridIn<dim> gi;
   gi.attach_triangulation (tr);
-  gi.read ("../bits/step-5/circle-grid.inp");
+  gi.read (SOURCE_DIR "../bits/step-5/circle-grid.inp");
 
   write_vtk(tr, "1");
 }
index c3d1abd922a572d21c2b10b272a1da357eb9e517..82c1b8924ccab7e24c63d09bab3a7556a1047205 100644 (file)
@@ -35,7 +35,8 @@
 template<int dim>
 void test(const char *filename)
 {
-  deallog.push (filename);
+  const char * p = strrchr(filename,'/');
+  deallog.push (p);
 
   parallel::distributed::Triangulation<dim> tr(MPI_COMM_WORLD);
 
index 272f0ca1fb7054f51298bbdc471e34daf85e8fc1..ae664583e8fc3cda83626e25dcbfe3aefc90fb8e 100644 (file)
@@ -37,7 +37,7 @@ void test(std::ostream & /*out*/)
 
   GridIn<dim> gi;
   gi.attach_triangulation (tr);
-  std::ifstream in ("../bits/gerold_1.inp");
+  std::ifstream in (SOURCE_DIR "../bits/gerold_1.inp");
   gi.read_ucd (in);
 
   write_vtk(tr, "1");
index 0d2bf946ada59b4cb4a5bcda4aea24aa1d06dd72..a0ebb10fbd00df8a3b391b2997a70a6ae3326e28 100644 (file)
@@ -36,7 +36,7 @@ void test(std::ostream & /*out*/)
 
   GridIn<dim> gi;
   gi.attach_triangulation (tr);
-  gi.read ("../bits/two_cubes.inp");
+  gi.read (SOURCE_DIR "../bits/two_cubes.inp");
 
   write_vtk(tr, "1");
 }

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.