Adding QNX as predefined platform in gtest-port.h

589 views
Skip to first unread message

Haruka Iwao

unread,
May 20, 2011, 2:52:39 AM5/20/11
to Google C++ Testing Framework
Hello,

I am using google test on QNX platform.
Currently gtest-port.h doesn't include macros for QNX so I manually
define some necessary definitions such as GTEST_USE_OWN_TR1_TUPLE,
GTEST_HAS_PTHREAD, etc.

Will a patch to support QNX as predefined platform likely be accepted?
If so, I'd make and submit a patch.

Thanks.

Vlad Losev

unread,
May 20, 2011, 4:31:59 AM5/20/11
to Haruka Iwao, Google C++ Testing Framework
Yes, we do accept patches. Please see http://code.google.com/p/googletest/wiki/DevGuide#Contributing_Code for instructions on how to contribute. Is this patch will be applicable to the OS in general or to a particular combination of compiler/standard library?

Thanks.

Haruka Iwao

unread,
May 20, 2011, 12:26:41 PM5/20/11
to Google C++ Testing Framework
Hello,

On 5月20日, 午後5:31, Vlad Losev <v...@losev.com> wrote:
> Yes, we do accept patches. Please seehttp://code.google.com/p/googletest/wiki/DevGuide#Contributing_Codefor
> instructions on how to contribute. Is this patch will be applicable to the
> OS in general or to a particular combination of compiler/standard library?

Thanks for the info.
I'll read the guide and try to make a patch.
It should work on QNX and QNX qcc compiler, which is based on gcc and
customized by QNX Software.
However I only have QNX Momentics (toolkit, compiler + IDE) version
4.7 so I'm not sure it work on earlier versions.
Intel also has a compiler for QNX but I cannot test on it because I
don't have it.
I *think* Intel's compiler is also based on gcc so my patch should
work on both compiler... but no proof.

Haruka Iwao

unread,
May 20, 2011, 12:32:36 PM5/20/11
to Google C++ Testing Framework
> I *think* Intel's compiler is also based on gcc so my patch should
> work on both compiler... but no proof.

Sorry, this is not correct.
Intel C++ compiler is made from their own code.
According to their document,
http://software.intel.com/sites/products/collateral/hpc/compilers/qnx_compiler_indepth.pdf
they claim it is compatible with gcc, but I think there are some
differences.

--
Haruka

Haruka Iwao

unread,
Jun 10, 2011, 11:24:01 PM6/10/11
to googletes...@googlegroups.com, Haruka Iwao
Hello,

I posted two patches on Rietveld. What should I do next?

Vlad Losev

unread,
Jun 11, 2011, 3:48:39 PM6/11/11
to googletes...@googlegroups.com, Haruka Iwao
HI Haruka,

I will post some comments for the first patch shortly. The second patch looks good as is. Once we accept the patches, we'll merge them into the trunk and they will be available from the svn head. They will be picked up in the next release although that release is likely far off.
Regards,
Vlad

Vlad Losev

unread,
Jun 20, 2011, 5:46:19 PM6/20/11
to googletes...@googlegroups.com, Haruka Iwao
Haruka,

You patch has landed in the repository in revision 586.

Thanks for the contribution!

- Vlad

Haruka Iwao

unread,
Jun 20, 2011, 7:21:10 PM6/20/11
to googletes...@googlegroups.com, Haruka Iwao
Hi Vlad,

Thank you for improving and accepting the patch.
I confirmed its landing.

However, I don't see http://codereview.appspot.com/4568066/ in the trunk.
What about this patch?

-- 
Haruka

Vlad Losev

unread,
Jun 20, 2011, 7:28:19 PM6/20/11
to googletes...@googlegroups.com, Haruka Iwao
I'll do this separately.

Vlad Losev

unread,
Jul 11, 2011, 3:29:12 PM7/11/11
to googletes...@googlegroups.com, Haruka Iwao
Hi Haruka 

The http://codereview.appspot.com/4568066/ fix is is now in SVN, revision 587.

Regards,
Vlad
Reply all
Reply to author
Forward
0 new messages