Boost logo

Boost Testing :

From: Bronek Kozicki (brok_at_[hidden])
Date: 2005-11-07 09:37:14


Reece Dunn <msclrhd_at_[hidden]> wrote:
> try inserting a fflush( f ); before the fclose and see if that fixes
> it although I don't see why it would.

will do. I also "enhanced" my local execnt.c in two other ways.

1. ID based on thread id, not process id (more unique)

        tempdir = getTempDir();

        /* SVA - allocate 64 other just to be safe */
        cmdtab[ slot ].tempfile = malloc( strlen( tempdir ) + 64 );

        procID = GetCurrentThreadId();

        sprintf( cmdtab[ slot ].tempfile, "%s\\jam%d-%02d.bat",
                 tempdir, procID, slot );

2. more detailed error info:
        f = fopen( cmdtab[ slot ].tempfile, "w" );
        if (!f)
        {
            printf( "failed to write command file \"%s\"!\n", cmdtab[
slot ].tempfile );
            exit( EXITBAD );
        }

I also found (knowing where to look) in my temp directory two bat files
that might be related to last two errors I reported here:

2005-11-07 10:28 414 jam3828-00.bat
2005-11-07 11:55 463 jam1664-00.bat

jam3828-00.bat contains (sorry for broken lines):

CALL "C:\Program Files\Microsoft Visual Studio 8\VC\bin\vcvars32.BAT"
>nul
    "C:\Program Files\Microsoft Visual Studio 8\VC\bin\link" /nologo
/DEBUG /subsystem:console
/out:"G:\results\bin\boost\libs\multi_index\test\test_set_ops.test\vc-8_0\debug\threading-multi\test_set_ops.exe"
@"G:\results\bin\boost\libs\multi_index\test\test_set_ops.test\vc-8_0\debug\threading-multi\test_set_ops.CMD"

and jam1664-00.bat contains:

CALL "C:\Program Files\Microsoft Visual Studio 8\VC\bin\vcvars32.BAT"
>nul
    "C:\Program Files\Microsoft Visual Studio 8\VC\bin\cl"
 /Zm800 -nologo /EHsc -c -DBOOST_REGEX_CONFIG_INFO=1 /Z7 /Od /Ob0
/EHsc /GR /MDd /Zc:forScope
Zc:wchar_t -I"G:\results\bin\boost\libs\regex\test" -I"G:\boost" -Fo"G:\results\bin\boost\libs\regex\test\regex_regress.test\vc-8_0\debug\threading-multi\test_asserts.obj"
  -Tp"..\libs\regex\test\regress\test_asserts.cpp"

B.


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