Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(767)

Issue 4517138: Adding QNX support to googletest

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 3 months ago by Yuryu
Modified:
14 years, 2 months ago
Reviewers:
Vlad
CC:
googletestframework_googlegroups.com
Base URL:
http://googletest.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Total comments: 1

Patch Set 2 : Modified according to Vlad's comment. #

Total comments: 2

Patch Set 3 : moved if/endif statements not to include code which never used on QNX #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -9 lines) Patch
M include/gtest/internal/gtest-port.h View 5 chunks +8 lines, -4 lines 0 comments Download
M src/gtest-death-test.cc View 1 2 5 chunks +42 lines, -3 lines 1 comment Download
M src/gtest-port.cc View 2 chunks +25 lines, -0 lines 0 comments Download
M test/gtest-port_test.cc View 1 4 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 9
Yuryu
Adding QNX support to googletest. As of QNX 6.5.0, it does not support fork under ...
14 years, 3 months ago (2011-06-05 00:08:58 UTC) #1
Vlad
http://codereview.appspot.com/4517138/diff/1/src/gtest-death-test.cc File src/gtest-death-test.cc (right): http://codereview.appspot.com/4517138/diff/1/src/gtest-death-test.cc#newcode979 src/gtest-death-test.cc:979: const bool use_fork = GTEST_FLAG(death_test_use_fork); Thes death_test_use_fork flag only ...
14 years, 3 months ago (2011-06-11 19:48:56 UTC) #2
Yuryu
Thanks for reviewing. I changed the code structure according to your comment.
14 years, 3 months ago (2011-06-12 06:23:23 UTC) #3
Vlad
http://codereview.appspot.com/4517138/diff/4001/src/gtest-death-test.cc File src/gtest-death-test.cc (right): http://codereview.appspot.com/4517138/diff/4001/src/gtest-death-test.cc#newcode1014 src/gtest-death-test.cc:1014: # endif // GTEST_OS_QNX Can you please move the ...
14 years, 3 months ago (2011-06-12 09:20:40 UTC) #4
Yuryu
Excluded code from complication for QNX by if/endif according to reviewer's comment. http://codereview.appspot.com/4517138/diff/4001/src/gtest-death-test.cc File src/gtest-death-test.cc ...
14 years, 3 months ago (2011-06-12 10:57:09 UTC) #5
Vlad
It looks good now. Have you signed the CLA. Once I can verify that you ...
14 years, 3 months ago (2011-06-13 00:22:42 UTC) #6
Yuryu
Thank you for reviewing again. Yes, I signed the CLA as Haruka Iwao.
14 years, 3 months ago (2011-06-13 04:38:50 UTC) #7
Vlad
http://codereview.appspot.com/4517138/diff/9001/src/gtest-death-test.cc File src/gtest-death-test.cc (right): http://codereview.appspot.com/4517138/diff/9001/src/gtest-death-test.cc#newcode965 src/gtest-death-test.cc:965: const int cwd_fd = open(".", O_RDONLY); A question - ...
14 years, 3 months ago (2011-06-17 18:32:55 UTC) #8
Yuryu
14 years, 2 months ago (2011-06-20 02:21:30 UTC) #9
According to POSIX, chdir() fails on some platforms when the path is longer than
PATH_MAX.
In this case the program should pass each path section separately to chdir().
Another reason I used fchdir() is I can save memory when a testing program
resides in a very deep directory(and memory pressure is high on embedded
systems).
Both open()+fchdir() and getcwd()+chdir() are POSIX functions, so I don't think
this affects portability.

See http://pubs.opengroup.org/onlinepubs/9699919799/functions/getcwd.html

I don't know whether fchdir() or similar functions exist on Windows.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b