MrazqRuby / googlemock

Automatically exported from code.google.com/p/googlemock
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Regex currently (1.4.0) included on Linux only - would like more platforms #96

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Download & build googlemock 1.4.0 on Mac OS X. 
2. Use the gtest that's included with gmock.
3. Use a regex matcher such as

   EXPECT_THAT(my_string, ContainsRegex("ab*"));

4. Compile fails. There is no ContainsRegex.

Version & OS: 1.4.0, Mac OS X

Please provide any additional information below.

It appears that googletest allows regexes on more platforms, although I haven't 
tested it:

In gtest-port.h

#if GTEST_OS_CYGWIN || GTEST_OS_LINUX || GTEST_OS_MAC || GTEST_OS_SYMBIAN || \
    GTEST_OS_SOLARIS
#define GTEST_USES_POSIX_RE 1

Original issue reported on code.google.com by utah...@gmail.com on 14 Jan 2010 at 5:16

GoogleCodeExporter commented 9 years ago
Fixed in r260.

Original comment by w...@google.com on 14 Jan 2010 at 7:58