blob: 668bc82ace9e442a5107d819e3961738c4d0d10f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!perl -X
BEGIN {
require Config; import Config;
no warnings 'once';
if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
print "1..0 # Skip: Data::Dumper was not built\n";
exit 0;
}
}
use Test::More tests => 2;
use Data::Dumper;
TODO: {
local $TODO = "RT#58608: Data::Dumper and slashes within qr";
my $q = q| \/ |;
use Data::Dumper;
my $qr = qr{$q};
eval Dumper $qr;
ok(!$@, "Dumping $qr with XS") or diag $@, Dumper $qr;
local $Data::Dumper::Useperl = 1;
eval Dumper $qr;
ok(!$@, "Dumping $qr with PP") or diag $@, Dumper $qr;
}
|