summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--t/lib/st-forgive.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/lib/st-forgive.t b/t/lib/st-forgive.t
index e5272f03b2..822013b5ec 100644
--- a/t/lib/st-forgive.t
+++ b/t/lib/st-forgive.t
@@ -46,7 +46,7 @@ $Storable::forgive_me=1;
my $devnull = File::Spec->devnull;
open(SAVEERR, ">&STDERR");
-open(STDERR, ">/dev/null") or
+open(STDERR, ">$devnull") or
( print SAVEERR "Unable to redirect STDERR: $!\n" and exit(1) );
eval {$result = store ($bad , 'store')};