PerlDancer/Dancer2 — pull request #405 by veryrusty (2013-08-23 09:38:35+00:00)
Title: Catch case when heuristic for Runner location gives '' as subdir.

The test suit starts of with caller of the test case, such as t/runner.t
That is converted to the dirname 't'. The heuristic for calculating the
location looks for 't/bin' which doesn't exist, so tries again at 't/..'.
However FileUtils::normalize_path('t/..') now returns the empty string ''.

Next time through the loop, it was asserting if '/bin' and '/lib' exist,
which do on debian based boxen exiting the for loop. The relative path ''
was then made absolute to the cwd, making it look like travis was ignoring
the 't' directory. (To reproduce the travis failure under OS X, ensure
/lib exists.)

If the subdir becomes empty, converting it to '.' fixes the issue.