File: IPC-Run3-profiling.t

package info (click to toggle)
libipc-run3-perl 0.049-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 200 kB
  • sloc: perl: 1,179; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 380 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!perl
use strict;
use warnings;

BEGIN {
    $ENV{IPCRUN3PROFILE} = "IPC::Run3::ProfArrayBuffer=";
}

use IPC::Run3;
use Test;

my @tests = (
sub {
    run3 [$^X, '-e1' ];
    ## no app_exit call is expected because the app (ie this script)
    ## has not exited quite yet.
    ok scalar IPC::Run3::_profiler()->get_events, 2;
},

);

plan tests => 0+@tests;

$_->() for @tests;