Boost logo

Boost Testing :

From: Reece Dunn (msclrhd_at_[hidden])
Date: 2005-11-07 09:51:00


Bronek Kozicki wrote:
>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();

You might want to update the bjam source to the latest CVS as the temporary
directory fetching code has changed.

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

It might also be useful to print out what errno and GetLastError() are
telling us.

>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

Are they always failing when slot == 0? You might want to add the extra line
I suggested:
           printf( "=== command file (%d) \"%s\"\n", slot, cmdtab[ slot
].tempfile );

- Reece


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