File: flock.t

package info (click to toggle)
libfile-flock-perl 2014.01-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 168 kB
  • sloc: perl: 1,001; makefile: 2
file content (18 lines) | stat: -rwxr-xr-x 331 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl

BEGIN {
	use Config;
	if (!$Config{d_flock}) {
		print "1..0 # Skipped: flock() not supported on this platform, use File::Flock::Forking to workaround\n";
		exit 0;
	}
}

use FindBin;
require "$FindBin::Bin/wrap.tm";

dirwrap(sub {
	require File::Flock;
	import File::Flock;
	require "$FindBin::Bin/flock.tt";
});