File: setopt.t

package info (click to toggle)
speedy-cgi-perl 2.22-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,128 kB
  • ctags: 890
  • sloc: ansic: 4,487; sh: 1,105; perl: 945; makefile: 89
file content (15 lines) | stat: -rw-r--r-- 210 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

print "1..1\n";

my $cmd = "$ENV{SPEEDY} t/scripts/setopt";

my $pid1 = `$cmd`;
sleep 2;
my $pid2 = `$cmd`;

if ($pid1 > 0 && $pid2 > 0 && $pid1 != $pid2) {
    print "ok\n";
} else {
    print "not ok\n";
}