Skip to content

Commit

Permalink
use getAllLines function
Browse files Browse the repository at this point in the history
  • Loading branch information
guillomovitch committed Aug 10, 2012
1 parent 73950a1 commit c3fd615
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions t/inventory/generic/screen.t
Expand Up @@ -322,13 +322,7 @@ plan tests => scalar keys %tests;

foreach my $test (sort keys %tests) {
my $file = "resources/generic/edid/$test";

my $handle;
next unless open $handle, '<', $file;
local $INPUT_RECORD_SEPARATOR; # Set input to "slurp" mode.
my $edid = <$handle>;
close $handle;

my $edid = getAllLines(file => $file);
my $info = FusionInventory::Agent::Task::Inventory::Input::Generic::Screen::_getEdidInfo($edid);
is_deeply($info, $tests{$test}, $test);
}

0 comments on commit c3fd615

Please sign in to comment.