]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Expect OpenIndiana test failure
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 2 Aug 2020 23:31:13 +0000 (16:31 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 2 Aug 2020 23:31:55 +0000 (16:31 -0700)
On OpenIndiana, Perl file locking does not work atop NFS.
* tests/tools.at (autom4te cache locking):
Expect this test to file if Perl file locking does not work.

tests/tools.at

index 81743374bbc10450c972944a0c2590871d7b64ea..314462ff431114223179d367f8ac76f68b87701b 100644 (file)
@@ -1353,6 +1353,13 @@ AT_CLEANUP
 
 AT_SETUP([autom4te cache locking])
 
+# Expect this test to fail if Perl file locking does not work.
+AT_XFAIL_IF([$PERL -I "$top_srcdir/lib" -e '
+                use Autom4te::XFile;
+                my $fh = new Autom4te::XFile "lockfile", O_RDWR|O_CREAT;
+                flock ($fh, LOCK_EX) && exit 1;
+              '])
+
 # Cannot use AT_CHECK here, autotest internals could be messed up.
 
 (echo AC_INIT; sleep 2; echo) \