On OpenBSD 7.6, the following test fails:

    246: AC_CACHE_CHECK                                  FAILED (base.at:732)

This happens because we compare the config.cache file to a dummy file we
write write after running ./configure --recheck by using 'test' with the
-ot expression.

However, since OpenBSD's /bin/sh 'test' builtin only compares seconds,
the check fails even though it shouldn't.

I've added a patch adding a sleep before creating the dummy file, which
should give enough time for the check to work.

Collin

>From abfae627e76f6797610d556bee425bba187b5a01 Mon Sep 17 00:00:00 2001
From: Collin Funk <collin.fu...@gmail.com>
Date: Sun, 23 Mar 2025 22:23:22 -0700
Subject: [PATCH] Fix test failure on OpenBSD 7.6

* tests/base.at: Sleep after running ./configure and before writing a
dummy file since OpenBSD /bin/sh test builtin does not handle
nanoseconds

Copyright-paperwork-exempt: yes
---
 tests/base.at | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/base.at b/tests/base.at
index 5ef3d9e4..2b759530 100644
--- a/tests/base.at
+++ b/tests/base.at
@@ -726,6 +726,9 @@ AT_CHECK([./config.status --recheck], [], [stdout])
 AT_CHECK([grep cache stdout], [0], [ignore])
 
 # By default, configure uses no cache file, neither loading nor updating it.
+# OpenBSD 7.6 /bin/sh test builtin does not handle nanoseconds, so we
+# must sleep before writing a-stamp-file.
+AT_MTIME_DELAY
 : > a-stamp-file
 AT_CHECK_CONFIGURE([], [], [stdout])
 AT_CHECK([grep cache stdout], [1])
-- 
2.49.0

Reply via email to