use Test::More tests => 11;
BEGIN { use_ok( 'P4' ); }
# Load test utils
unshift( @INC, "." );
unshift( @INC, "t" );
require_ok( "p4test" );
my $test = new P4::Test;
my $p4 = $test->InitClient();
ok( defined( $p4 ) );
$p4->SetProg( $0 );
ok( $p4->Connect() );
$p4->Debug( 0 );
# First we run a 'p4 counter change' in what should be tagged mode. Then
# we run it again with tagged mode off. Then we turn tagged mode on, but
# run it again turning it temporarily off.
ok( $p4->IsTagged() );
my @r = $p4->RunCounter( 'change' );
ok( ref( $r[ 0 ] ) eq "HASH" );
my $val = $r[ 0 ]->{ 'value' };
$p4->Tagged( 0 );
ok( ! $p4->IsTagged() );
@r = $p4->RunCounter( 'change' );
is( $r[ 0 ], $val );
$p4->Tagged( 1 );
ok( $p4->IsTagged() );
my $sub = sub { @r = $p4->RunCounter( 'change' ) };
$p4->Tagged( 0, $sub );
is( $r[ 0 ], $val );
ok( $p4->IsTagged() );
| # | Change | User | Description | Committed | |
|---|---|---|---|---|---|
| #1 | 25173 | C. Thomas Tyler | Populate -o -r -S //p4perl/r18.2. | ||
| //p4perl/main/t/20-misc.t | |||||
| #3 | 25172 | C. Thomas Tyler | p4 copy from old main. | ||
| #2 | 25111 | C. Thomas Tyler |
Added P4Perl 2018.2, published from: http://ftp.perforce.com/perforce/r18.2/bin.tools/ |
||
| #1 | 21593 | C. Thomas Tyler |
Populate -o //guest/perforce_software/p4perl/main/... //p4perl/main/.... |
||
| //guest/perforce_software/p4perl/main/t/20-misc.t | |||||
| #1 | 15920 | Matt Attaway | Move p4perl files into the main directory | ||
| //guest/perforce_software/p4perl/t/20-misc.t | |||||
| #1 | 8486 | Paul Allen |
Initial population of P4PERL from: //depot/main/p4-perl/...@565514 //depot/main/p4-doc/user/p4perlnotes.txt@565514 |
||