On 21/12/2021 20.32, Richard Henderson wrote:
On 12/21/21 2:32 AM, Thomas Huth wrote:
Using g_file_open_tmp is certainly better ... but the tests are currently
written in a way where they require the file name of the temporary file -
so switching to g_file_open_tmp() (which only provides a file handle)
certainly would need some rewrite here...
Incorrect. g_file_open_tmp returns the open file handle, but also returns
the filename in *name_used.
D'oh - not sure how I missed that yesterday :-/
I should think you can close the file handle straight away and use the
filename.
Ok, then let's continue with that approach.
Thomas