t9700/test.pl: avoid bareword 'STDERR' in 3-argument open()
[gitweb.git] / t / t9700 / test.pl
index 4d2312548a81762918ac05b9a0014195b08ea532..b47c71989adbfd08e7ee3b37f8457fb378288f67 100755 (executable)
@@ -38,7 +38,7 @@
 # Failure cases for config:
 # Save and restore STDERR; we will probably extract this into a
 # "dies_ok" method and possibly move the STDERR handling to Git.pm.
-open our $tmpstderr, ">&", STDERR or die "cannot save STDERR"; close STDERR;
+open our $tmpstderr, ">&STDERR" or die "cannot save STDERR"; close STDERR;
 eval { $r->config("test.dupstring") };
 ok($@, "config: duplicate entry in scalar context fails");
 eval { $r->config_bool("test.boolother") };