File: 110_compare.t

package info (click to toggle)
libfile-nfslock-perl 1.29-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 208 kB
  • sloc: perl: 429; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 308 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
use strict;
use warnings;

use Test::More tests => 3;
use File::NFSLock;
use Fcntl;

# Make sure File::NFSLock has the correct
# constants according to Fcntl
is (&File::NFSLock::LOCK_SH(),&Fcntl::LOCK_SH());
is (&File::NFSLock::LOCK_EX(),&Fcntl::LOCK_EX());
is (&File::NFSLock::LOCK_NB(),&Fcntl::LOCK_NB());