]> code.ossystems Code Review - openembedded-core.git/commit
openssl.inc: avoid random ptest failures
authorPatrick Ohly <patrick.ohly@intel.com>
Fri, 23 Sep 2016 13:23:20 +0000 (15:23 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 23 Sep 2016 17:06:10 +0000 (18:06 +0100)
commit101e2a5e0b7822ca3de3d3a73369405c05ab3c5b
treeeaa8ccdabbbfe29d486ab8fde50530d86f114608
parentd6b69279b5d1370d9c4982d5b1842a471cfd2b0e
openssl.inc: avoid random ptest failures

"make alltests" is sensitive to the timestamps of the installed
files. Depending on the order in which cp copies files, .o and/or
executables may end up with time stamps older than the source files.
Running tests then triggers recompilation attempts, which typically
will fail because dev tools and files are not installed.

"cp -a" is not enough because the files also have to be newer than
the installed header files. Setting the file time stamps to
the current time explicitly after copying solves the problem because
do_install_ptest_base is guaranteed to run after do_install.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/openssl/openssl.inc