Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
3569c3c8
Commit
3569c3c8
authored
Mar 26, 2010
by
zhanyong.wan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes compatibility with Visual Age versions lower than 9.0 (by Hady Zalek);…
Fixes compatibility with Visual Age versions lower than 9.0 (by Hady Zalek); updates the release notes.
parent
2429dfc6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
19 deletions
+18
-19
CHANGES
CHANGES
+8
-7
CMakeLists.txt
CMakeLists.txt
+4
-1
gtest-port.h
include/gtest/internal/gtest-port.h
+6
-11
No files found.
CHANGES
View file @
3569c3c8
Changes for 1.5.0:
Changes for 1.5.0:
* New feature:
Ability to use test assertions in multi-threaded test
s
* New feature:
assertions can be safely called in multiple thread
s
on platforms implementing pthreads
.
where the pthreads library is available
.
* New feature:
P
redicates used inside EXPECT_TRUE() and friends
* New feature:
p
redicates used inside EXPECT_TRUE() and friends
can now generate custom failure messages.
can now generate custom failure messages.
* New feature: Google Test can now be compiled as a DLL
on Windows
.
* New feature: Google Test can now be compiled as a DLL.
* New feature:
The distribution package now includes fused source files
.
* New feature:
fused source files are included
.
* New feature:
P
rints help when encountering unrecognized Google Test flags.
* New feature:
p
rints help when encountering unrecognized Google Test flags.
* Experimental feature: CMake build script (requires CMake 2.6.4+).
* Experimental feature: CMake build script (requires CMake 2.6.4+).
* Experimental feature: the Pump script for meta programming.
* double values streamed to an assertion are printed with enough precision
* double values streamed to an assertion are printed with enough precision
to differentiate any two different values.
to differentiate any two different values.
* Google Test now works on Solaris.
* Google Test now works on Solaris
and AIX
.
* Build and test script improvements.
* Build and test script improvements.
* Bug fixes and implementation clean-ups.
* Bug fixes and implementation clean-ups.
...
...
CMakeLists.txt
View file @
3569c3c8
...
@@ -88,7 +88,10 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "SunPro")
...
@@ -88,7 +88,10 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "SunPro")
elseif
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"VisualAge"
)
elseif
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"VisualAge"
)
set
(
cxx_exception_flags
"-qeh"
)
set
(
cxx_exception_flags
"-qeh"
)
set
(
cxx_no_exception_flags
"-qnoeh"
)
set
(
cxx_no_exception_flags
"-qnoeh"
)
set
(
cxx_no_rtti_flags
"-qnortti"
)
# Until version 9.0, Visual Age doesn't define a macro to indicate
# whether RTTI is enabled. Therefore we define GTEST_HAS_RTTI
# explicitly.
set
(
cxx_no_rtti_flags
"-qnortti -DGTEST_HAS_RTTI=0"
)
endif
()
endif
()
if
(
CMAKE_USE_PTHREADS_INIT
)
# The pthreads library is available.
if
(
CMAKE_USE_PTHREADS_INIT
)
# The pthreads library is available.
...
...
include/gtest/internal/gtest-port.h
View file @
3569c3c8
...
@@ -335,24 +335,19 @@
...
@@ -335,24 +335,19 @@
#define GTEST_HAS_RTTI 0
#define GTEST_HAS_RTTI 0
#endif
#endif
#elif defined(__GNUC__)
// Starting with version 4.3.2, gcc defines __GXX_RTTI iff RTTI is enabled.
// Starting with version 4.3.2, gcc defines __GXX_RTTI iff RTTI is enabled.
#if GTEST_GCC_VER_ >= 40302
#elif defined(__GNUC__) && (GTEST_GCC_VER_ >= 40302)
#ifdef __GXX_RTTI
#ifdef __GXX_RTTI
#define GTEST_HAS_RTTI 1
#define GTEST_HAS_RTTI 1
#else
#else
#define GTEST_HAS_RTTI 0
#define GTEST_HAS_RTTI 0
#endif // __GXX_RTTI
#endif // __GXX_RTTI
#else
// For gcc versions smaller than 4.3.2, we assume RTTI is enabled.
#define GTEST_HAS_RTTI 1
#endif // GTEST_GCC_VER >= 40302
#elif defined(__IBMCPP__)
// Starting with version 9.0 IBM Visual Age defines __RTTI_ALL__ to 1 if
// both the typeid and dynamic_cast features are present.
#elif defined(__IBMCPP__) && (__IBMCPP__ >= 900)
// IBM Visual Age defines __RTTI_ALL__ to 1 if both the typeid and
// dynamic_cast features are present.
#ifdef __RTTI_ALL__
#ifdef __RTTI_ALL__
#define GTEST_HAS_RTTI 1
#define GTEST_HAS_RTTI 1
#else
#else
...
@@ -361,7 +356,7 @@
...
@@ -361,7 +356,7 @@
#else
#else
//
Unknown compiler -
assume RTTI is enabled.
//
For all other compilers, we
assume RTTI is enabled.
#define GTEST_HAS_RTTI 1
#define GTEST_HAS_RTTI 1
#endif // _MSC_VER
#endif // _MSC_VER
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment