Changeset 1635
- Timestamp:
- 06/24/08 17:15:50 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
honeyclient/branches/exp/kindlund-strace/lib/HoneyClient/Agent.pm
r1623 r1635 656 656 use Config; 657 657 SKIP: { 658 skip 'HoneyClient::Agent only works in Cygwin environment.', 1 1if ($Config{osname} !~ /^cygwin$/);658 skip 'HoneyClient::Agent only works in Cygwin environment.', 13 if ($Config{osname} !~ /^cygwin$/); 659 659 660 660 # Shared test variables. … … 1309 1309 ], 1310 1310 'time_at' => '2008-04-02 21:44:40.376', 1311 'work_status' => 'completed',1312 1311 }; 1313 1312 … … 1342 1341 fail($@); 1343 1342 } 1343 diag("Note: If applicable, be sure to delete any STRACE.LOG files that remain on the Desktop."); 1344 1344 } 1345 1345 honeyclient/branches/exp/kindlund-strace/t/honeyclient_agent.t
r1499 r1635 107 107 use DateTime::HiRes; 108 108 109 # Make sure Filesys::CygwinPaths loads. 110 BEGIN { use_ok('Filesys::CygwinPaths') or diag("Can't load Filesys::CygwinPaths package. Check to make sure the package library is correctly listed within the path."); } 111 require_ok('Filesys::CygwinPaths'); 112 use Filesys::CygwinPaths qw(:all); 113 114 # Make sure File::Basename loads. 115 BEGIN { use_ok('File::Basename', qw(basename dirname)) or diag("Can't load File::Basename package. Check to make sure the package library is correctly listed within the path."); } 116 require_ok('File::Basename'); 117 can_ok('File::Basename', 'basename'); 118 can_ok('File::Basename', 'dirname'); 119 use File::Basename qw(basename dirname); 120 109 121 # Make sure Data::Dumper loads. 110 122 BEGIN { use_ok('Data::Dumper') or diag("Can't load Data::Dumper package. Check to make sure the package library is correctly listed within the path."); } … … 179 191 use Config; 180 192 SKIP: { 181 skip 'HoneyClient::Agent only works in Cygwin environment.', 1 1if ($Config{osname} !~ /^cygwin$/);193 skip 'HoneyClient::Agent only works in Cygwin environment.', 13 if ($Config{osname} !~ /^cygwin$/); 182 194 183 195 # Shared test variables. … … 212 224 ok($changes, "drive(driver_name => 'HoneyClient::Agent::Driver::Browser::IE')") or diag("The drive() call failed."); 213 225 ok(exists($changes->{'status'}), "drive(driver_name => 'HoneyClient::Agent::Driver::Browser::IE')") or diag("The drive() call failed."); 226 ok(exists($changes->{'work_status'}), "drive(driver_name => 'HoneyClient::Agent::Driver::Browser::IE')") or diag("The drive() call failed."); 214 227 ok(exists($changes->{'time_at'}), "drive(driver_name => 'HoneyClient::Agent::Driver::Browser::IE')") or diag("The drive() call failed."); 215 228 ok(exists($changes->{'fingerprint'}), "drive(driver_name => 'HoneyClient::Agent::Driver::Browser::IE')") or diag("The drive() call failed."); … … 830 843 } 831 844 ], 832 'time_at' => '2008-04-02 21:44:40.376' 845 'time_at' => '2008-04-02 21:44:40.376', 833 846 }; 834 847 … … 844 857 ok(exists($changes->{'time_at'}), "drive(driver_name => 'HoneyClient::Agent::Driver::Browser::IE')") or diag("The drive() call failed."); 845 858 ok(exists($changes->{'fingerprint'}), "drive(driver_name => 'HoneyClient::Agent::Driver::Browser::IE')") or diag("The drive() call failed."); 859 ok(exists($changes->{'work_status'}), "drive(driver_name => 'HoneyClient::Agent::Driver::Browser::IE')") or diag("The drive() call failed."); 846 860 847 861 # Check that os_processes is not empty. … … 862 876 fail($@); 863 877 } 878 diag("Note: If applicable, be sure to delete any STRACE.LOG files that remain on the Desktop."); 864 879 } 865 880 }
