From: Robert 'phaylon' Sedlacek Date: Mon, 7 May 2012 21:01:45 +0000 (+0000) Subject: Processes probe tests X-Git-Tag: v0.001_001~124 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=395c0ef29c7d02005e78ccff329450e7c117822f;p=scpubgit%2FSystem-Introspector.git Processes probe tests --- diff --git a/t/processes.t b/t/processes.t new file mode 100644 index 0000000..5158aae --- /dev/null +++ b/t/processes.t @@ -0,0 +1,13 @@ +use strictures 1; +use Test::More; + +use System::Introspector::Processes; + +my $probe = System::Introspector::Processes->new; +my $data = $probe->gather; + +ok(@$data, 'received processes'); +ok(not(grep { not $_->{pid} } @$data), 'all entries have pid'); +ok(not(grep { not $_->{command} } @$data), 'all entries have command'); + +done_testing;