]> code.ossystems Code Review - openembedded-core.git/commitdiff
valgrind: Make ptest timestamps copasetic
authorRandy MacLeod <Randy.MacLeod@windriver.com>
Fri, 17 May 2019 20:10:20 +0000 (16:10 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 21 May 2019 11:56:17 +0000 (12:56 +0100)
Avoid ptest failures due to .diffs such as
cachegrind/tests/ann1.post.diff:
   @ Source file 'a.c' is more recent than input file 'cgout-test'.
   @ Annotations may not be correct.
by using:
   touch a.c -r cgout-test

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/valgrind/valgrind_3.15.0.bb

index ae3498f551e56274b5edd5b0b0cdd723aa58f0b7..2160fc92d1a7deea829f498ab641266a9826a8e2 100644 (file)
@@ -168,6 +168,7 @@ do_install_ptest() {
         -o -name "*.h" \) \
         -exec rm {} \;
     mv ${D}${PTEST_PATH}/cachegrind/tests/a_c ${D}${PTEST_PATH}/cachegrind/tests/a.c
+    touch ${D}${PTEST_PATH}/cachegrind/tests/a.c -r ${D}${PTEST_PATH}/cachegrind/tests/cgout-test
 
     # find *_annotate in ${bindir} for yocto build
     sed -i s:\.\./\.\./cachegrind/cg_annotate:${bindir}/cg_annotate: ${D}${PTEST_PATH}/cachegrind/tests/ann1.vgtest