[PATCH 0/3] Some fixes for Google Test on RTEMS

Martin Erik Werner martinerikwerner.aac at gmail.com
Sat Sep 30 16:31:27 UTC 2017


Based on some experimentation with Google Test on RTEMS, here are some
patches that fell out of that process, which might be interesting?

Martin Erik Werner (3):
  rtems: Handle multi-level multilib directories
  rtems: Make prefix configurable
  rtems: Provide nonzero argc required by gtest init

 rtems/Makefile          |  1 +
 rtems/gtest-main.h      |  5 +++--
 rtems/install-target.sh | 21 +++++++++++++++++++--
 3 files changed, 23 insertions(+), 4 deletions(-)

I have tested this on a non-virtual or1k target, and gotten it working
with the precompiled and installed gtest.a and gtest-main.h.

Some details that might be worth noting is that:
* -std=gnu++11 appears to be needed for fdopen() and other posix
  non-ansi friends.
* -lgtest must be linked after the test suite object.

-- 
2.11.0



More information about the devel mailing list