[LTP] [PATCH] open_posix: Remove hardcoded /tmp
From: Li Wang <hidden>
Date: 2021-03-17 06:20:51
On Wed, Mar 17, 2021 at 2:12 PM Joerg Vehlow [off-list ref] wrote:
Hi,quoted
It'd be great if a passing string end with the suffix "_", be used to clearly distinguish the PID number. Something like: LTP_GET_TMP_FILENAME(tmpfname, "pts_aio_cancel_1_1_"); This comment applies to all of the changing files in this patch, or we can modify it in the macro prototype.Is this really of any use? I was also thinking about removing the prefix part of the filename completely.
In fact useless, and nobody cares about the temp file name. But that'll make naming make some sense or tidy, IMO.
I just decided to keep it, so files, that are not deleted automatically can be identified as belonging to the test. If I would implement this, then only in the macro definition.
If I was the author, prefer to do that in macro definition too:). -- Regards, Li Wang -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.linux.it/pipermail/ltp/attachments/20210317/b37ddf8e/attachment.htm>