From: Paul A Bristow (pbristow_at_[hidden])
Date: 2006-06-24 04:21:42
| -----Original Message-----
| From: boost-bounces_at_[hidden]
| [mailto:boost-bounces_at_[hidden]] On Behalf Of Gennadiy Rozental
| Sent: 24 June 2006 06:28
| To: boost_at_[hidden]
| Subject: Re: [boost] Error messages from Boost.test
| "Paul A Bristow" <pbristow_at_[hidden]> wrote in message
| news:E1FtqT5-0005lW-> But why does the test suite then output:
| > unknown location(0)
| > unknown location(0): fatal error in "test_main_caller(
| argc, argv )":
| > Could/should it show file and line here? Am I using this
| wrongly? Or is
| > this just a feature?
| Essencially the reason is that Boost.Test does indeed do not
| know where the
| error occured.
| Let's say we have
| 123: BOOST_CHECK( foo() );
| If there is a fatal error within function foo invokation
| Boost.Test doesn't
| know where it actually occured. I couldn't state that it
| occured at line
| 123, since the assertion is not validated yet. What I could
| show is that we
| enterred the expression at line 123 and then something
| happend (vs. an error
| occured with assertion at line 123)
| > ): last checkpoint
| > Does show the (deliberately) offending file and line,
| which is good.
| Is it good enough?
It is certainly good enough, but the existing 1st message has confused me -
not difficult ;-)
It suggested to me that I was missing something.
Could the first message easily and usefully say "After line 123" perhaps?
--- Paul A Bristow Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB +44 1539561830 & SMS, Mobile +44 7714 330204 & SMS pbristow_at_[hidden]