pinkwayne / google-glog

Automatically exported from code.google.com/p/google-glog
Other
0 stars 0 forks source link

building and testing out of tree #50

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When trying to run tests out of tree with r85, it went a lot further than it 
used to, but still didn't 
succeed (this is on Mac OS X):

g++ -DHAVE_CONFIG_H -I. -I./src -I../trunk  -I../trunk/src  -D_THREAD_SAFE     
-Wall -Wwrite-
strings -Woverloaded-virtual -Wno-sign-compare  -DNO_FRAME_POINTER -g -O2 -MT 
logging_unittest-logging_unittest.o -MD -MP -MF 
.deps/logging_unittest-logging_unittest.Tpo 
-c -o logging_unittest-logging_unittest.o `test -f 'src/logging_unittest.cc' || 
echo 
'../trunk/'`src/logging_unittest.cc
../trunk/src/logging_unittest.cc: In function ‘void TestDCHECK()’:
../trunk/src/logging_unittest.cc:562: error: ‘ASSERT_EQ’ was not declared 
in this scope
make: *** [logging_unittest-logging_unittest.o] Error 1
make: Target `check' not remade because of errors.

I worked around that by duplicating the EXPECT_EQ definition (line 135 of 
googletest.h).

The tests themselves seem to have other problems that I couldn't resolve 
quickly:

make  logging_striplog_test_sh demangle_unittest_sh signalhandler_unittest_sh
../trunk/src/logging_striplog_test.sh
../trunk/src/logging_striplog_test.sh: line 69: 74989 Abort trap              
./logging_striptest2 2> 
/dev/null
PASS
./demangle_unittest  # force to create lt-demangle_unittest
Passed 2 tests

PASS
../trunk/src/demangle_unittest.sh
nm: can't open file: .libs/libglog.so (No such file or directory)
PASS
./signalhandler_unittest  # force to create lt-signalhandler_unittest
OK
../trunk/src/signalhandler_unittest.sh
../trunk/src/signalhandler_unittest.sh: line 76: 75063 Segmentation fault      
GOOGLE_LOG_DIR=. 
$BINARY segv 2> signalhandler.out1
'main' should appear in the output
make[1]: *** [signalhandler_unittest_sh] Error 1
make: *** [check-am] Error 2

Original issue reported on code.google.com by pphaneuf@google.com on 28 May 2010 at 11:28

GoogleCodeExporter commented 8 years ago
Thanks for your report. I'll look into this.

Original comment by shinichi...@gmail.com on 28 May 2010 at 4:30

GoogleCodeExporter commented 8 years ago
I think this was fixed with r86. Thanks!

Original comment by ham...@chromium.org on 15 Jun 2010 at 4:39