Boost logo

Boost Testing :

Subject: [Boost-testing] [boost][test] how to define path to error
From: Andrey Torba (andreytorba_at_[hidden])
Date: 2009-06-18 10:54:59


This is an output of failed test:

-*- mode: compilation; default-directory: "d:/trash/libraries/" -*-
Compilation started at Thu Jun 18 17:21:09

bjam test/ toolset=msvc
...patience...
...found 1286 targets...
...updating 2 targets...
testing.capture-output
bin\test\Function.test\msvc-8.0\debug\link-static\threading-multi\Function.run
====== BEGIN OUTPUT ======
Running 1 test case...
Function.cpp(26): fatal error in "FunctionConstruction": critical check
pf->Name() == "F13" failed [F1 != F13]

*** 1 failure detected in test suite "foo_test"
Detected memory leaks!
Dumping objects ->
{235} normal block at 0x003A7C88, 32 bytes long.
 Data: < T1 > 00 00 00 00 CD CD CD CD 54 31 00 CD CD CD CD CD
{234} normal block at 0x003A7E00, 96 bytes long.
 Data: < T1 > 00 00 00 00 CD CD CD CD 54 31 00 CD CD CD CD CD
{233} normal block at 0x003A7D88, 76 bytes long.
 Data: < E ~: > F4 D9 45 00 00 00 00 00 CD CD CD CD 00 7E 3A 00
Object dump complete.

EXIT STATUS: 201
====== END OUTPUT ======

emacs compile buffer doesn't recognize the error. I decide to customize an
error parser. The advice how to do it (
http://stackoverflow.com/questions/1011364/teach-emacs-recognize-boost-test-errors
).
My question is how to get full path to Function.cpp.
In example above it is d:/trash/libraries/test/Function.cpp. The bjam was
started from d:/trash/libraries/

-- 
Regards, Andrey


Boost-testing list run by mbergal at meta-comm.com