Boost logo

Boost :

From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2005-03-24 10:51:30


Gennadiy Rozental writes:
> Is there any way to see a run command in case test fails at runtime?
> The same as we could see compiler command line if it fails at
> compile time

Depends on what exactly you want to see. The "command line" is
somewhat complicated; for instance:

C:\Projects\results\bin\boost\libs\test\test\test_fp_comparisons.test\vc-7_1\debug\threading-multi\test_fp_comparisons.exe > C:\Projects\results\bin\boost\libs\test\test\test_fp_comparisons.test\vc-7_1\debug\threading-multi\test_fp_comparisons.output 2>&1

    set status=%ERRORLEVEL%
    echo. >> C:\Projects\results\bin\boost\libs\test\test\test_fp_comparisons.test\vc-7_1\debug\threading-multi\test_fp_comparisons.output
    echo EXIT STATUS: %status% >> C:\Projects\results\bin\boost\libs\test\test\test_fp_comparisons.test\vc-7_1\debug\threading-multi\test_fp_comparisons.output
    if %status% EQU 0 (
        copy C:\Projects\results\bin\boost\libs\test\test\test_fp_comparisons.test\vc-7_1\debug\threading-multi\test_fp_comparisons.output C:\Projects\results\bin\boost\libs\test\test\test_fp_comparisons.test\vc-7_1\debug\threading-multi\test_fp_comparisons.run
    )
    set verbose=1
    if %status% NEQ 0 (
        set verbose=0
    )
    if %verbose% EQU 0 (
        echo ====== BEGIN OUTPUT ======
        type C:\Projects\results\bin\boost\libs\test\test\test_fp_comparisons.test\vc-7_1\debug\threading-multi\test_fp_comparisons.output
        echo ====== END OUTPUT ======
    )
    exit %status%

Which part of it is of your interest?

-- 
Aleksey Gurtovoy
MetaCommunications Engineering

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk