use Test::More tests => 8;
BEGIN { use_ok( 'P4' ); }
# Load test utils
unshift( @INC, "." );
unshift( @INC, "t" );
require_ok( "p4test" );
my $test = P4::Test->new();
my $p4 = $test->InitClient();
ok( $p4->SetTrack( 1 ) );
ok( $p4->IsTrack() );
$p4->Connect();
ok( $p4->IsConnected() );
# Suppress the expected warning in the test
my $old_warn = $SIG{ __WARN__ };
$SIG{ __WARN__ } = sub {};
ok( !$p4->SetTrack( 0 ) );
$SIG{ __WARN__ } = $old_warn;
ok( $p4->IsTrack() );
$p4->Run( "info" );
my @track = $p4->TrackOutput();
ok( @track );
$p4->Disconnect();
| # | Change | User | Description | Committed | |
|---|---|---|---|---|---|
| #2 | 19592 | jmash | Convert uses of indirect object construction syntax to use direct syntax in the test modules. | ||
| #1 | 19582 | jmash | Initial fork of P4Perl. | ||
| //guest/perforce_software/p4perl/main/t/15-track.t | |||||
| #1 | 15920 | Matt Attaway | Move p4perl files into the main directory | ||
| //guest/perforce_software/p4perl/t/15-track.t | |||||
| #1 | 8486 | Paul Allen |
Initial population of P4PERL from: //depot/main/p4-perl/...@565514 //depot/main/p4-doc/user/p4perlnotes.txt@565514 |
||