Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix up deprecation warnings test
$*OS and $*OSVER are no longer deprecated; they're just gone now
  • Loading branch information
hoelzro committed Sep 4, 2015
1 parent 3a02f73 commit 68f7764
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions S02-types/deprecations.t
Expand Up @@ -11,35 +11,21 @@ plan 1;
my $line;
my $absPROGRAM = $*PROGRAM.abspath;

# $*OS and $OSVER
#?niecza skip 'is DEPRECATED NYI'
{
$line = $?LINE; $*OS;
$*OSVER;
$*OS;
$*OSVER;
$*EXECUTABLE_NAME;
$*PROGRAM_NAME;
is Deprecation.report, qq:to/TEXT/.chop.subst(/\r/, '', :g), 'deprecation $*OS and $*OSVER';
Saw 4 occurrences of deprecated code.
Saw 2 occurrences of deprecated code.
================================================================================
\$*EXECUTABLE_NAME seen at:
$absPROGRAM, line {$line + 4}
$absPROGRAM, line {$line + 1}
Deprecated since v2015.6, will be removed with release v2015.9!
Please use \$*EXECUTABLE-NAME instead.
--------------------------------------------------------------------------------
\$*OS seen at:
$absPROGRAM, lines $line,{$line + 2}
Deprecated since v2014.9, will be removed with release v2015.9!
Please use \$*DISTRO.name instead.
--------------------------------------------------------------------------------
\$*OSVER seen at:
$absPROGRAM, lines {$line + 1},{$line + 3}
Deprecated since v2014.9, will be removed with release v2015.9!
Please use \$*DISTRO.version instead.
--------------------------------------------------------------------------------
\$*PROGRAM_NAME seen at:
$absPROGRAM, line {$line + 5}
$absPROGRAM, line {$line + 2}
Deprecated since v2015.6, will be removed with release v2015.9!
Please use \$*PROGRAM-NAME instead.
--------------------------------------------------------------------------------
Expand Down

0 comments on commit 68f7764

Please sign in to comment.