diff options
author | Nicholas Clark <nick@ccl4.org> | 2004-11-25 23:41:05 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2004-11-25 23:41:05 +0000 |
commit | 06482b9023d4582a18f90fd15b1272b5f3df6fca (patch) | |
tree | 7863f47891ee92591da87d84dba2ebb41726f6b5 /lib | |
parent | 3be001280d73dc8b5fd9a98b62dc5c8080b55e1c (diff) | |
download | perl-06482b9023d4582a18f90fd15b1272b5f3df6fca.tar.gz |
Generate the virtual entries at Config.pm build time, as they
don't change. This lets us get rid of the entire "fetch_virtual"
baggage, and makes the config_re lookup work for the virtual
entries.
p4raw-id: //depot/perl@23542
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Config.t | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/lib/Config.t b/lib/Config.t index 24e3cabfbe..982855499b 100644 --- a/lib/Config.t +++ b/lib/Config.t @@ -221,15 +221,9 @@ foreach my $pain ($first, @virtual) { my @result = $Config{$pain}; is (scalar @result, 1, "single result for \$config('$pain')"); - TODO: { - local $TODO; - $TODO = "No regexp lookup for $pain yet" - unless $pain eq 'byteorder' or $pain eq $first; - - @result = Config::config_re($pain); - is (scalar @result, 1, "single result for config_re('$pain')"); - like ($result[0], qr/^$pain=(['"])$Config{$pain}\1$/, # grr ' - "which is the expected result for $pain"); - } + @result = Config::config_re($pain); + is (scalar @result, 1, "single result for config_re('$pain')"); + like ($result[0], qr/^$pain=(['"])$Config{$pain}\1$/, # grr ' + "which is the expected result for $pain"); } |