From 6c949b85762849c70b65db803eae547874edffa3 Mon Sep 17 00:00:00 2001 From: Paul Floyd Date: Thu, 28 Dec 2023 21:50:06 +0100 Subject: [PATCH] regtest: try to make cachegrind/tests/ann-merge2.vgtest deterministic Add a touch of the cgout files so that they are more recent than the source file. git clone seems to sometimes timestamp the source after the cgout files which generates a warning and a post failure. At least with FreeBSD on ZFS. --- cachegrind/tests/ann-merge2.vgtest | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cachegrind/tests/ann-merge2.vgtest b/cachegrind/tests/ann-merge2.vgtest index adbdcde2c..e8223247e 100644 --- a/cachegrind/tests/ann-merge2.vgtest +++ b/cachegrind/tests/ann-merge2.vgtest @@ -1,5 +1,8 @@ # The `prog` doesn't matter because we don't use its output. Instead we test # the post-processing of the cgout files. +# The touch is because git clone might give the cgout files a timestamp +# in the future wrt the source file which generates a warning and post failure +prereq: touch ann-merge1a.cgout ann-merge1b.cgout prog: ../../tests/true vgopts: --cachegrind-out-file=cachegrind.out -- 2.11.4.GIT