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.

I should think you can close the file handle straight away and use the filename.


r~

Reply via email to