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

Issue 7855: Portability patch for some Unixes

Can't Edit
Can't Publish+Mail
Start Review
Created:
17 years, 2 months ago by Hobbes
Modified:
16 years, 5 months ago
Reviewers:
chandlerc, Vlad, Zhanyong
CC:
googletestframework_googlegroups.com
Base URL:
http://googletest.googlecode.com/svn/trunk/
Visibility:
Public.

Description

This patch makes it possible to build on currently unsupported platforms and compilers, including: AIX - GCC HP-UX - HP-GCC Solaris - GCC z/OS - IBM XL C/C++ It also fixes the Visual Studio project, which was missing to reference a source file. Please note that the build system has not been touched, as on most of these platforms neither of the currently used build systems is anything like standard. It might be questionable if _POSIX_PATH_MAX is safe to be used if PATH_MAX is not defined. One of these platforms is z/OS.

Patch Set 1 #

Patch Set 2 : Portability patch taking comments into consideration - vcproj changes moved to Issue 7707 #

Patch Set 3 : fixing comment and misspelt macro #

Patch Set 4 : Patch as proposed by Zhanyong via mailinglist #

Patch Set 5 : Patch as proposed by Zhanyong via mailinglist (fixed line endings) #

Patch Set 6 : Fixes as suggested by Zhanyong #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -28 lines) Patch
CONTRIBUTORS View 1 chunk +1 line, -0 lines 0 comments Download
include/gtest/internal/gtest-internal.h View 1 2 3 4 4 chunks +19 lines, -13 lines 0 comments Download
include/gtest/internal/gtest-port.h View 1 2 3 4 5 6 chunks +27 lines, -11 lines 0 comments Download
src/gtest.cc View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
src/gtest-filepath.cc View 1 2 3 4 2 chunks +13 lines, -3 lines 0 comments Download

Messages

Total messages: 20
Hobbes
17 years, 2 months ago (2008-10-23 12:16:21 UTC) #1
chandlerc
I've made an initial pass through this patch, thought I'd go ahead and send it ...
17 years, 2 months ago (2008-10-24 22:41:42 UTC) #2
Zhanyong
http://codereview.appspot.com/7855/diff/1/2 File include/gtest/internal/gtest-internal.h (right): http://codereview.appspot.com/7855/diff/1/2#newcode154 Line 154: // Passing non-POD classes through ellipsis (...) crashes ...
17 years, 2 months ago (2008-10-29 22:22:24 UTC) #3
chandlerc
To respond to the email comment by Rainer (JSYK, you can respond to in-line comments ...
17 years, 2 months ago (2008-10-30 06:49:56 UTC) #4
Zhanyong
http://codereview.appspot.com/7855/diff/1/4 File src/gtest-filepath.cc (right): http://codereview.appspot.com/7855/diff/1/4#newcode56 Line 56: #define PATH_MAX _POSIX_PATH_MAX On 2008/10/30 06:49:56, chandlerc wrote: ...
17 years, 2 months ago (2008-10-30 06:55:08 UTC) #5
chandlerc
http://codereview.appspot.com/7855/diff/1/4 File src/gtest-filepath.cc (right): http://codereview.appspot.com/7855/diff/1/4#newcode56 Line 56: #define PATH_MAX _POSIX_PATH_MAX On 2008/10/30 06:55:08, Zhanyong wrote: ...
17 years, 2 months ago (2008-10-30 07:20:57 UTC) #6
Hobbes
Portability patch taking comments into consideration - vcproj changes moved to Issue 7707
17 years, 2 months ago (2008-10-30 13:04:38 UTC) #7
Hobbes
http://codereview.appspot.com/7855/diff/15/210 File include/gtest/internal/gtest-port.h (right): http://codereview.appspot.com/7855/diff/15/210#newcode560 Line 560: #define GTEST_COMPILER_NEEDS_POINTER_TEMPLETE_SELECTION_HELP 1 i guess this macro is ...
17 years, 2 months ago (2008-10-30 13:16:29 UTC) #8
Vlad
http://codereview.appspot.com/7855/diff/15/209 File include/gtest/internal/gtest-internal.h (right): http://codereview.appspot.com/7855/diff/15/209#newcode242 Line 242: #endif // GTEST_OS_SYMBIAN Small nit: GTEST_COMPILER_NEEDS_POINTER_TEMPLETE_SELECTION_HELP
17 years, 2 months ago (2008-10-30 15:50:02 UTC) #9
Hobbes
http://codereview.appspot.com/7855/diff/15/209 File include/gtest/internal/gtest-internal.h (right): http://codereview.appspot.com/7855/diff/15/209#newcode242 Line 242: #endif // GTEST_OS_SYMBIAN On 2008/10/30 15:50:02, Vlad wrote: ...
17 years, 2 months ago (2008-10-30 18:20:23 UTC) #10
Hobbes
fixing comment and misspelt macro
17 years, 2 months ago (2008-10-31 08:43:03 UTC) #11
Zhanyong
Sorry it took so long. I can fix the issues myself and upload a new ...
17 years, 2 months ago (2008-11-06 19:47:39 UTC) #12
Hobbes
On 2008/11/06 19:47:39, Zhanyong wrote: > I can fix the issues myself and upload a ...
17 years, 2 months ago (2008-11-06 22:48:55 UTC) #13
Hobbes
Patch as proposed by Zhanyong via mailinglist
17 years, 2 months ago (2008-11-07 08:34:33 UTC) #14
Hobbes
Patch as proposed by Zhanyong via mailinglist (fixed line endings)
17 years, 2 months ago (2008-11-07 08:43:20 UTC) #15
Zhanyong
http://codereview.appspot.com/7855/diff/237/417 File include/gtest/internal/gtest-port.h (right): http://codereview.appspot.com/7855/diff/237/417#newcode75 Line 75: // GTEST_OS_SOLARIS - defined iff compiled on Sun ...
17 years, 2 months ago (2008-11-07 18:44:39 UTC) #16
Zhanyong
Rainer, Could you also add yourself to the CONTRIBUTORS file? Thanks!
17 years, 2 months ago (2008-11-07 18:46:29 UTC) #17
Hobbes
Fixes as suggested by Zhanyong
17 years, 2 months ago (2008-11-10 10:34:19 UTC) #18
Zhanyong
Thanks, Rainer! This looks good. I'll work on checking it in soon. Cheers!
17 years, 2 months ago (2008-11-10 16:09:37 UTC) #19
Hobbes
17 years, 2 months ago (2008-11-10 16:19:52 UTC) #20
Thanks everybody for reviewing and providing valuable feedback!

On 2008/11/10 16:09:37, Zhanyong wrote:
> Thanks, Rainer!  This looks good.  I'll work on checking it in soon.  Cheers!
Sign in to reply to this message.

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