From: Paul Floyd Date: Thu, 28 Dec 2023 20:50:06 +0000 (+0100) Subject: regtest: try to make cachegrind/tests/ann-merge2.vgtest deterministic X-Git-Tag: VALGRIND_3_23_0~206 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6c949b85762849c70b65db803eae547874edffa3;p=thirdparty%2Fvalgrind.git 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. --- diff --git a/cachegrind/tests/ann-merge2.vgtest b/cachegrind/tests/ann-merge2.vgtest index adbdcde2c4..e8223247eb 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