Test scripts pass in release builds too
authorDavid Hotham <david.hotham@metaswitch.com>
Fri, 6 Mar 2015 14:15:55 +0000 (14:15 +0000)
committerYoungjae Shin <yj99.shin@samsung.com>
Tue, 9 Jun 2015 11:43:26 +0000 (20:43 +0900)
cpp/test/phonenumbers/shortnumberinfo_test.cc

index 94df9d3..690fea0 100644 (file)
@@ -36,8 +36,10 @@ class ShortNumberInfoTest : public testing::Test {
   PhoneNumber ParseNumberForTesting(const string& number,
                                     const string& region_code) {
     PhoneNumber phone_number;
-    CHECK_EQ(phone_util_.Parse(number, region_code, &phone_number),
-             PhoneNumberUtil::NO_PARSING_ERROR);
+    PhoneNumberUtil::ErrorType error_type = phone_util_.Parse(
+                                           number, region_code, &phone_number);
+    CHECK_EQ(error_type, PhoneNumberUtil::NO_PARSING_ERROR);
+    IGNORE_UNUSED(error_type);
     return phone_number;
   }