Permalink
Browse files

Exclude a failing test in MingW build.

  • Loading branch information...
1 parent e3926f5 commit 9ba2eaecdd43875639511d8676aa97d0440a9a04 @xfxyjwf xfxyjwf committed Feb 26, 2013
Showing with 4 additions and 3 deletions.
  1. +2 −1 python/README.txt
  2. +2 −2 src/google/protobuf/stubs/stringprintf_unittest.cc
View
@@ -43,8 +43,9 @@ Installation
$ protoc --version
-4) Run the tests:
+4) Build and run the tests:
+ $ python setup.py build
$ python setup.py test
If some tests fail, this library may not work correctly on your
@@ -54,8 +54,8 @@ TEST(StringPrintfTest, Empty) {
}
TEST(StringPrintfTest, Misc) {
-// MSVC does not support $ format specifier.
-#if !defined(_MSC_VER)
+// MSVC and mingw does not support $ format specifier.
+#if !defined(_MSC_VER) && !defined(__MINGW32__)
EXPECT_EQ("123hello w", StringPrintf("%3$d%2$s %1$c", 'w', "hello", 123));
#endif // !_MSC_VER
}

0 comments on commit 9ba2eae

Please sign in to comment.