This repository has been archived by the owner on Jul 31, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using plan for testing, test on Linux only
- Loading branch information
Showing
3 changed files
with
7 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
use v6; | ||
|
||
use Test; | ||
use lib 'lib'; | ||
|
||
use-ok('Linux::Process::SignalInfo', 'Linux::Process::SignInfo can be used!'); | ||
plan 1; | ||
|
||
done-testing(); | ||
use-ok('Linux::Process::SignalInfo', 'Linux::Process::SignInfo can be used!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
use v6; | ||
|
||
use Test; | ||
use lib 'lib'; | ||
|
||
use Linux::Process::SignalInfo; | ||
|
||
plan :skip-all<These tests are only for Linux> unless $*KERNEL.name eq 'linux'; | ||
plan 4; | ||
|
||
ok( | ||
my $signal_info = Linux::Process::SignalInfo.new(pid => 65537), | ||
'New instance with non existed PID' | ||
); | ||
nok($signal_info.read, 'Reading non existed process'); | ||
ok($signal_info.error ne '', 'Error' ~ $signal_info.error); | ||
nok($signal_info.parse, 'Empty data'); | ||
|
||
done-testing(); |