[cage] Fix pgegrep, which was merely an innocent bystander in the Great Namespace...
[parrot.git] / t / op / time_old.t
blob96804493988576f9817d4d5afa7c7f873f474ba0
1 #!perl
2 # Copyright (C) 2001-2009, Parrot Foundation.
3 # $Id$
5 use strict;
6 use warnings;
7 use lib qw( . lib ../lib ../../lib );
8 use Test::More;
9 use Parrot::Test tests => 1;
11 =head1 NAME
13 t/op/time.t - Time and Sleep
15 =head1 SYNOPSIS
17     % prove t/op/time.t
19 =head1 DESCRIPTION
21 Tests the C<time> and C<sleep> operations.
23 =cut
25 my $year;
26 ( undef, undef, undef, undef, undef, $year ) = localtime();
27 $year += 1900;
29 # don't run this test 1 tick before the year changes #'
31 pasm_output_is( <<'CODE', $year, "decodelocaltime" );
32     time I0
33     decodelocaltime P0, I0
34     .include "tm.pasm"
35     set I0, P0[.TM_YEAR]
36     print I0
37     end
38 CODE
41 # Local Variables:
42 #   mode: cperl
43 #   cperl-indent-level: 4
44 #   fill-column: 100
45 # End:
46 # vim: expandtab shiftwidth=4: