summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2013-02-20 13:28:46 +0000
committerSteve Hay <steve.m.hay@googlemail.com>2013-02-20 13:28:46 +0000
commit615e2f774517c03a3a6c4d123a812299d9465d74 (patch)
tree5a5490fe3f69d000fd62b1502ba36f10386311a5 /t
parentefeca31ee17ce18e493c4afdda03b48ad5a518ce (diff)
downloadperl-615e2f774517c03a3a6c4d123a812299d9465d74.tar.gz
Silence irrelevant stderr output from op/magic.t
Some 'set' commands in this test are intended to verify that an environment variable is not set, which causes the command to send a warning message to stderr.
Diffstat (limited to 't')
-rw-r--r--t/op/magic.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/op/magic.t b/t/op/magic.t
index 854790d627..d06fcaa34d 100644
--- a/t/op/magic.t
+++ b/t/op/magic.t
@@ -72,7 +72,7 @@ sub env_is {
require Win32;
my $cp = Win32::GetConsoleOutputCP();
Win32::SetConsoleOutputCP(Win32::GetACP());
- (my $set = `set $key`) =~ s/\r\n$/\n/;
+ (my $set = `set $key 2>nul`) =~ s/\r\n$/\n/;
Win32::SetConsoleOutputCP($cp);
like $set, qr/^(?:\Q$key\E=)?\Q$val\E$/, $desc;
} elsif ($Is_VMS) {