use Test::More tests => 8; 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( $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 | |
---|---|---|---|---|---|
#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 |