use test data for Perls probe
[scpubgit/System-Introspector.git] / t / processes.t
CommitLineData
395c0ef2 1use strictures 1;
2use Test::More;
3
afd7c030 4use System::Introspector::Probe::Processes;
395c0ef2 5
afd7c030 6my $probe = System::Introspector::Probe::Processes->new;
8c39f05c 7my $result = $probe->gather;
8
9ok($result, 'got result');
10my $data = $result->{processes};
11ok($data, 'got process data');
395c0ef2 12
13ok(@$data, 'received processes');
14ok(not(grep { not $_->{pid} } @$data), 'all entries have pid');
8c39f05c 15ok(not(grep { not $_->{args} } @$data), 'all entries have args');
395c0ef2 16
17done_testing;