summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2020-08-02 16:31:13 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2020-08-02 16:31:55 -0700
commit0f8fd8ec8674dde4cca94fc0efa8794fd3944ad8 (patch)
treeb7fe45d0a357ec6957835020bbf4ca9e84e9c515
parent3ba414b2c4f599de1a3834b7074c3d47ff746341 (diff)
downloadautoconf-0f8fd8ec8674dde4cca94fc0efa8794fd3944ad8.tar.gz
Expect OpenIndiana test failure
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.
-rw-r--r--tests/tools.at7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/tools.at b/tests/tools.at
index 81743374..314462ff 100644
--- a/tests/tools.at
+++ b/tests/tools.at
@@ -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) \