Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

building and testing out of tree #50

Open
GoogleCodeExporter opened this issue Mar 18, 2015 · 2 comments
Open

building and testing out of tree #50

GoogleCodeExporter opened this issue Mar 18, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

Thanks for your report. I'll look into this.

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

  • Changed state: Accepted
  • Added labels: Priority-High
  • Removed labels: Priority-Medium

@GoogleCodeExporter
Copy link
Author

I think this was fixed with r86. Thanks!

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant