summaryrefslogtreecommitdiff
path: root/t/op
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2015-02-18 19:06:29 -0600
committerCraig A. Berry <craigberry@mac.com>2015-02-18 19:06:29 -0600
commit43b19daca9743d6288698da46cbc0434328e3b91 (patch)
treed9f79f977c4f78985706bc5597b6701ee8c0ab42 /t/op
parent616b344493d526c505a241bee3571ae735408885 (diff)
downloadperl-43b19daca9743d6288698da46cbc0434328e3b91.tar.gz
Fix t/op/dump.t warning in skip case.
When the whole test is skipped, the END block that does a chdir to $start throws a warning because $start is not defined. So check for definedness.
Diffstat (limited to 't/op')
-rw-r--r--t/op/dump.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/op/dump.t b/t/op/dump.t
index 270b58c3a8..a2e320f4da 100644
--- a/t/op/dump.t
+++ b/t/op/dump.t
@@ -52,5 +52,5 @@ print qq(B);
PROG
END {
- chdir $start;
+ chdir $start if defined $start;
}