File: test4.t

package info (click to toggle)
libdevel-profile-perl 1.05-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 128 kB
  • sloc: perl: 215; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 291 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!perl -d:Profile
# -*- perl -*-

sub foo {
    sleep 1;
    die {};
}

sub bar {
    sleep 1;
    foo();
    sleep 1;	# this never happens
}

sub baz {
    sleep 1;
    eval { bar() };
    sleep 1;	# because of the exception, this gets accounted for in foo
}

baz();

print "1..1\nok 1\n";