]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Try to fix path_search test. The problem is that with ctest, we need to do a diff...
authorBruno Turcksin <bruno.turcksin@gmail.com>
Wed, 18 Sep 2013 23:17:06 +0000 (23:17 +0000)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Wed, 18 Sep 2013 23:17:06 +0000 (23:17 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30816 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/path_search.cc
tests/bits/grid_in_msh_01.2d.msh [new file with mode: 0644]

index 3e75da5c6b6dd0ffff19cb703533fdecf1da73a2..bd0d6bb4d2b1ae5929ff3373d63b492f029f17c0 100644 (file)
@@ -30,8 +30,9 @@ int main()
 
   // Open with full debugging
   PathSearch cc("CC", 3);
-  cc.add_path("../");
-  cc.add_path("../scripts/", PathSearch::front);
+  cc.add_path(SOURCE_DIR "/");
+  cc.add_path(SOURCE_DIR "/../");
+  cc.add_path(SOURCE_DIR "/../scripts/", PathSearch::front);
   cc.add_suffix(".c");
   cc.add_suffix(".cc");
 
@@ -42,7 +43,7 @@ int main()
   cc.show(deallog);
 
   PathSearch mesh("MESH", 3);
-  mesh.add_path("../bits/");
+  mesh.add_path(SOURCE_DIR "/../bits/");
   mesh.show(deallog);
   std::ifstream in(mesh.find("grid_in_msh_01.2d").c_str());
   std::string line;
diff --git a/tests/bits/grid_in_msh_01.2d.msh b/tests/bits/grid_in_msh_01.2d.msh
new file mode 100644 (file)
index 0000000..ef628fb
--- /dev/null
@@ -0,0 +1,15 @@
+$NOD
+4
+1 0 0 0
+2 1 0 0
+3 1 1 0
+4 0 1 0
+$ENDNOD
+$ELM
+5
+1 1 1 1 2 1 2
+2 1 1 2 2 2 3
+3 1 1 3 2 3 4
+4 1 1 4 2 4 1
+5 3 100 6 4 1 2 3 4
+$ENDELM

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.