Changeset 1428

Show
Ignore:
Timestamp:
04/02/08 21:09:16 (4 months ago)
Author:
kindlund
Message:

Updated unit tests to work in non cygwin environments.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • honeyclient/branches/exp/kindlund-simpler_agent/lib/HoneyClient/Agent.pm

    r1427 r1428  
    173173    can_ok('HoneyClient::Agent', 'init'); 
    174174    can_ok('HoneyClient::Agent', 'destroy'); 
    175     use HoneyClient::Agent; 
     175    if ($Config{osname} =~ /^cygwin$/) { 
     176        require HoneyClient::Agent; 
     177    } 
    176178} 
    177179 
     
    222224 
    223225    require_ok('Win32::Job'); 
    224     use Win32::Job; 
     226    if ($Config{osname} =~ /^cygwin$/) { 
     227        require Win32::Job; 
     228    } 
    225229} 
    226230 
  • honeyclient/branches/exp/kindlund-simpler_agent/t/honeyclient_agent.t

    r1427 r1428  
    7171    can_ok('HoneyClient::Agent', 'init'); 
    7272    can_ok('HoneyClient::Agent', 'destroy'); 
    73     use HoneyClient::Agent; 
     73    if ($Config{osname} =~ /^cygwin$/) { 
     74        require HoneyClient::Agent; 
     75    } 
    7476} 
    7577 
     
    120122 
    121123    require_ok('Win32::Job'); 
    122     use Win32::Job; 
     124    if ($Config{osname} =~ /^cygwin$/) { 
     125        require Win32::Job; 
     126    } 
    123127} 
    124128