[OE-core] [OE-CORE][PATCH 0/2] LTP: realtime tests - fix bad conditionals

Gary S. Robertson gary.robertson at linaro.org
Fri Oct 3 15:17:46 UTC 2014


From: "Gary S. Robertson" <gary.robertson at linaro.org>

Several of the mutex tests in the LTP realtime test suite contained
conditional compilation clauses which were failing in the OE build
environment.  Part of the problem was in the test source code itself...
these conditional clauses depended on configuration variables which
did not exist or on header content which could not be found.
The configuration errors resulted in incorrect code being generated
even when the features to be tested were supported in the target
environment.

The two patches submitted here correct the LTP realtime test sources
by modifying the conditionals to use only the configuration variables
which are generated by LTP autoconf for the purpose of verifying
target system support for the features in question.
These patches have been submitted to the LTP maintainers.

Aside from the source code errors addressed by these patches, there is
a separate issue which prevents LTP autoconf from correctly generating
the configuration variables referenced in these patches.
The macros which autoconf uses to create these variables are nested
too deeply in a source directory tree and are not found in the default
OE autoconf environment.  A separate patch was authored by Randy Witt
<randy.e.witt at linux.intel.com> which resolves this issue by adding
the following line to the OE recipe ltp_20140422.bb:

 EXTRA_AUTORECONF += "-I ${S}/testcases/realtime/m4"

The correct compilation of the affected LTP realtime tests depends upon
the two patches submitted here as well as Randy Witt's patch - which I
understand will be submitted separately by its author.
With all three patches in place the test code has been found to build
and execute correctly on armv7a LE and BE platforms as well as x86_64.
prio_wake fails on armv7a but that problem lies in the underlying
pthreads library or in the kernel itself - not in the LTP code.

Gary S. Robertson (2):
  LTP - realtime tests - fix bad PI mutex conditionals
  LTP - realtime tests - fix bad robust mutex conditionals

 ...sts-Fix-bad-priority-inheritance-conditio.patch |   48 +++++++++++++++
 ...ltime-tests-Fix-robust-mutex-conditionals.patch |   62 ++++++++++++++++++++
 meta/recipes-extended/ltp/ltp_20140422.bb          |    2 +
 3 files changed, 112 insertions(+)
 create mode 100644 meta/recipes-extended/ltp/ltp/0001-Realtime-tests-Fix-bad-priority-inheritance-conditio.patch
 create mode 100644 meta/recipes-extended/ltp/ltp/0001-Realtime-tests-Fix-robust-mutex-conditionals.patch

-- 
1.7.9.5




More information about the Openembedded-core mailing list