[bjam/test] how to pass command arguments to test-case

Hi, The test docs state that "If you got "memory access violation" message (or any other message indication fatal or system error) when you run you test, to get more information of error location add --catch_system_errors=no to the test run command line:" (see http://www.boost.org/libs/test/doc/usage/msvc_net.html) How do I do this via bjam? Thanks -Thorsten

"Thorsten Ottosen" <thorsten.ottosen@dezide.com> wrote in message news:44703A33.40402@dezide.com...
Hi,
The test docs state that
"If you got "memory access violation" message (or any other message indication fatal or system error) when you run you test, to get more information of error location add --catch_system_errors=no to the test run command line:"
(see http://www.boost.org/libs/test/doc/usage/msvc_net.html)
How do I do this via bjam?
I think you could specify CLA in Jamfile: : #args --catch_system_errors=no Gennadiy

Gennadiy Rozental wrote:
"Thorsten Ottosen" <thorsten.ottosen@dezide.com> wrote in message news:44703A33.40402@dezide.com...
Hi,
The test docs state that
"If you got "memory access violation" message (or any other message indication fatal or system error) when you run you test, to get more information of error location add --catch_system_errors=no to the test run command line:"
(see http://www.boost.org/libs/test/doc/usage/msvc_net.html)
How do I do this via bjam?
I think you could specify CLA in Jamfile: : #args --catch_system_errors=no
But *where* in the Jam file. I have the follwing: import testing ; rule range-test ( name : includes * ) { return [ run $(name).cpp <lib>../../test/build/boost_unit_test_framework <lib>../../regex/build/boost_regex : : : <include>$(BOOST_ROOT) $(includes) ] ; } test-suite range : [ range-test array ] ; Thanks -Thorsten

"Thorsten Ottosen" <thorsten.ottosen@dezide.com> wrote in message news:4470766A.80902@dezide.com...
Gennadiy Rozental wrote:
"Thorsten Ottosen" <thorsten.ottosen@dezide.com> wrote in message news:44703A33.40402@dezide.com...
Hi,
The test docs state that
"If you got "memory access violation" message (or any other message indication fatal or system error) when you run you test, to get more information of error location add --catch_system_errors=no to the test run command line:"
(see http://www.boost.org/libs/test/doc/usage/msvc_net.html)
How do I do this via bjam?
I think you could specify CLA in Jamfile: : #args --catch_system_errors=no
But *where* in the Jam file. I have the follwing:
import testing ;
rule range-test ( name : includes * ) { return [ run $(name).cpp <lib>../../test/build/boost_unit_test_framework <lib>../../regex/build/boost_regex :
--catch_system_errors=no
: : <include>$(BOOST_ROOT) $(includes) ] ; }
test-suite range : [ range-test array ] ;
Thanks
-Thorsten _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Gennadiy Rozental wrote:
"Thorsten Ottosen" <thorsten.ottosen@dezide.com> wrote in message news:4470766A.80902@dezide.com...
Gennadiy Rozental wrote:
But *where* in the Jam file. I have the follwing:
<lib>../../regex/build/boost_regex :
--catch_system_errors=no
Thanks :-) It doesn't change anything for me. I guess I don't have a system error? Gennadiy, can you say anything about why I get the following outout? -Thorsten $ bjam -sTOOLS="vc-8_0" adaptors Building Boost.Regex with the optional Unicode/ICU support disabled. Please refer to the Boost.Regex documentation for more information (and if you don't know what ICU is then you probably don't need it). ...found 1530 targets... ...using 1 temp target... ...updating 2 targets... ...using <@boost!libs!range!test\adaptors.test\vc-8_0\debug\threading-multi>adap tors.exe... execute-test ..\..\..\bin\boost\libs\range\test\adaptors.test\vc-8_0\debug\threa ding-multi\adaptors.run ====== BEGIN OUTPUT ====== EXIT STATUS: -1073741819 ====== END OUTPUT ====== ..\..\..\bin\boost\libs\range\test\adaptors.test\vc-8_0\debug\threading-multi\ad aptors.exe --catch_system_errors=no > ..\..\..\bin\boost\libs\range\test\adapt ors.test\vc-8_0\debug\threading-multi\adaptors.output 2>&1 set status=%ERRORLEVEL% echo. >> ..\..\..\bin\boost\libs\range\test\adaptors.test\vc-8_0\debug\threa ding-multi\adaptors.output echo EXIT STATUS: %status% >> ..\..\..\bin\boost\libs\range\test\adaptors.te st\vc-8_0\debug\threading-multi\adaptors.output if %status% EQU 0 ( copy ..\..\..\bin\boost\libs\range\test\adaptors.test\vc-8_0\debug\threa ding-multi\adaptors.output ..\..\..\bin\boost\libs\range\test\adaptors.test\vc-8 _0\debug\threading-multi\adaptors.run ) set verbose=1 if %status% NEQ 0 ( set verbose=0 ) if %verbose% EQU 0 ( echo ====== BEGIN OUTPUT ====== type ..\..\..\bin\boost\libs\range\test\adaptors.test\vc-8_0\debug\threa ding-multi\adaptors.output echo ====== END OUTPUT ====== ) exit %status% ...failed execute-test ..\..\..\bin\boost\libs\range\test\adaptors.test\vc-8_0\d ebug\threading-multi\adaptors.run... ...failed updating 1 target... ...skipped 1 target...

"Thorsten Ottosen" <thorsten.ottosen@dezide.com> wrote in message news:44707EA1.50302@dezide.com...
Gennadiy Rozental wrote:
"Thorsten Ottosen" <thorsten.ottosen@dezide.com> wrote in message news:4470766A.80902@dezide.com...
Gennadiy Rozental wrote:
But *where* in the Jam file. I have the follwing:
<lib>../../regex/build/boost_regex :
--catch_system_errors=no
Thanks :-)
It doesn't change anything for me. I guess I don't have a system error?
Gennadiy, can you say anything about why I get the following outout?
-Thorsten
$ bjam -sTOOLS="vc-8_0" adaptors Building Boost.Regex with the optional Unicode/ICU support disabled. Please refer to the Boost.Regex documentation for more information (and if you don't know what ICU is then you probably don't need it). ...found 1530 targets... ...using 1 temp target... ...updating 2 targets... ...using <@boost!libs!range!test\adaptors.test\vc-8_0\debug\threading-multi>adap tors.exe... execute-test ..\..\..\bin\boost\libs\range\test\adaptors.test\vc-8_0\debug\threa ding-multi\adaptors.run ====== BEGIN OUTPUT ======
EXIT STATUS: -1073741819
My guess is this is the only usefull piece of information. Try to add --log_level=all Gennadiy

Gennadiy Rozental wrote:
"Thorsten Ottosen" <thorsten.ottosen@dezide.com> wrote in message news:44707EA1.50302@dezide.com...
Gennadiy, can you say anything about why I get the following outout?
Try to add --log_level=all
That gives some more information, but it still like looking for a needle in a haystack. I'm pretty sure I'm breaking some iterators bounds. I'm using visual C++ 8, but their iterator debuggin doesn't kick in! They have some of the best debug iterators, why the **** is it not turned on when I compile with bjam (I'm not saying this is a problem with boost.test, I'm just amazed)! -Thorsten
participants (2)
-
Gennadiy Rozental
-
Thorsten Ottosen