Browse files

[t/spec] README: section about CWD in test files

git-svn-id: c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
1 parent 25b9135 commit cbe775aa3bce10a2250658e92023db2b2be2c8f7 moritz committed May 3, 2009
Showing with 6 additions and 0 deletions.
  1. +5 −0 README
  2. +1 −0 S06-advanced_subroutine_features/return_function.t
@@ -91,3 +91,8 @@ to run, where unfudged tests are just passed through unchanged as *.t.
Each test comes through as either fudged or not, but never both.
The test harness then runs the selected test files as it normally
would (it shouldn't care whether they are named *.t or *.humpty).
+In cases where the current working directory makes a difference, the tests
+assume that the working directory is the root of the test suite, so that the
+relative path to itself is t/spec/S\d\d-$section/$filename.
@@ -22,3 +22,4 @@ use Test; plan 4;
is($rv2, Pair, "returned Pair object 2");
+# vim: ft=perl6

0 comments on commit cbe775a

Please sign in to comment.