Gela / googletest

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

Can't show log information?? #251

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
my function
TEST(XBASIC, strtod) {                                                          

  double d = 0;                                                                                                         

  d = strtod( "+123.4", NULL );                                                                                         
  EXPECT_TRUE( errno == 0 );                                                                                            
  EXPECT_EQ( 123.4, d );                                                                                                

  d = strtod( "a+123.4", NULL );                                                                                        
  RecordProperty( "errno", errno );                                                                                     
  EXPECT_TRUE( errno != 0 );                                                                                            
}                                                                               

output:
[ RUN      ] XBASIC.strtod
xbasic_gtest.cc:91: Failure
Value of: errno != 0
  Actual: false
Expected: true
[  FAILED  ] XBASIC.strtod (0 ms)
[----------] 7 tests from XBASIC (1 ms total)

[----------] Global test environment tear-down
[==========] 7 tests from 1 test case ran. (1 ms total)
[  PASSED  ] 6 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] XBASIC.strtod

 1 FAILED TEST

-----------
see: There is no info show by RecordProperty;

Original issue reported on code.google.com by xueyunlong@gmail.com on 2 Feb 2010 at 11:32

GoogleCodeExporter commented 9 years ago
This is expected: RecordProperty() writes to the XML output, not the console.

Original comment by w...@google.com on 2 Feb 2010 at 4:31