X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F01-import.t;fp=t%2F01-import.t;h=8a3b3da8e97f1ec73527e709d7582062a6f510ee;hb=1a5910bd40eb93ca8b46dbb37ba3e02010382567;hp=0000000000000000000000000000000000000000;hpb=624a07ec0df20496fd4254857c063bf0fa56ecf7;p=perl%2Fmodules%2FLinux-SysInfo.git diff --git a/t/01-import.t b/t/01-import.t new file mode 100644 index 0000000..8a3b3da --- /dev/null +++ b/t/01-import.t @@ -0,0 +1,19 @@ +#!perl -T + +use strict; +use warnings; + +use Test::More tests => 2 * 2; + +require Linux::SysInfo; + +my %syms = ( + sysinfo => '', + LS_HAS_EXTENDED => '', +); + +for (keys %syms) { + eval { Linux::SysInfo->import($_) }; + is $@, '', "import $_"; + is prototype($_), $syms{$_}, "prototype $_"; +}