From 23b7491484db4931df89ab71732eb5105d539c7e Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Thu, 19 Sep 2013 20:55:47 +0000 Subject: [PATCH] fix tests 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 | 2 +- tests/distributed_grids/3d_coarse_grid_02.cc | 3 ++- tests/distributed_grids/3d_coarse_grid_03.cc | 2 +- tests/distributed_grids/3d_coarse_grid_04.cc | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/distributed_grids/2d_coarse_grid_04.cc b/tests/distributed_grids/2d_coarse_grid_04.cc index 66c4ada1dc..f92f3a52b2 100644 --- a/tests/distributed_grids/2d_coarse_grid_04.cc +++ b/tests/distributed_grids/2d_coarse_grid_04.cc @@ -36,7 +36,7 @@ void test(std::ostream & /*out*/) GridIn 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"); } diff --git a/tests/distributed_grids/3d_coarse_grid_02.cc b/tests/distributed_grids/3d_coarse_grid_02.cc index c3d1abd922..82c1b8924c 100644 --- a/tests/distributed_grids/3d_coarse_grid_02.cc +++ b/tests/distributed_grids/3d_coarse_grid_02.cc @@ -35,7 +35,8 @@ template void test(const char *filename) { - deallog.push (filename); + const char * p = strrchr(filename,'/'); + deallog.push (p); parallel::distributed::Triangulation tr(MPI_COMM_WORLD); diff --git a/tests/distributed_grids/3d_coarse_grid_03.cc b/tests/distributed_grids/3d_coarse_grid_03.cc index 272f0ca1fb..ae664583e8 100644 --- a/tests/distributed_grids/3d_coarse_grid_03.cc +++ b/tests/distributed_grids/3d_coarse_grid_03.cc @@ -37,7 +37,7 @@ void test(std::ostream & /*out*/) GridIn 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"); diff --git a/tests/distributed_grids/3d_coarse_grid_04.cc b/tests/distributed_grids/3d_coarse_grid_04.cc index 0d2bf946ad..a0ebb10fbd 100644 --- a/tests/distributed_grids/3d_coarse_grid_04.cc +++ b/tests/distributed_grids/3d_coarse_grid_04.cc @@ -36,7 +36,7 @@ void test(std::ostream & /*out*/) GridIn gi; gi.attach_triangulation (tr); - gi.read ("../bits/two_cubes.inp"); + gi.read (SOURCE_DIR "../bits/two_cubes.inp"); write_vtk(tr, "1"); } -- 2.39.5