[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] test release for GSL 2.4

From: Brian Gladman
Subject: Re: [Help-gsl] test release for GSL 2.4
Date: Thu, 22 Jun 2017 09:41:00 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

I assume that by 'race condition' you mean that any tests running in
parallel would both be using the same file (IIRC "test.dat").

If so, you could possibly revert your change and use the tmpnam()
function to set the filename to be used.

I don't know where the resulting file would be placed with GCC but on
Windows this will return a filename that is unique in the current
working directory, which would be likely to have the right access
permission.  However, the MS documentation simply says that

"tmpnam returns a name unique in the current working directory"

which suggests that this won't solve the race condition.

We could possibly maintain full c89 compatibility for GSL itself but
relax this requirement for these two tests and use mkstemp and the MSVC
equivalent (_mktemp or _mktemp_s) that seem to avoid the problem.

I cant test for these failures however as they don't occur for me as I
am running the build with admin privileges.

   best regards,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]