[LTP] [PATCH 1/2] lib/tst_test: setup TCID earlier in do_setup()
Li Wang
liwang@redhat.com
Thu Jun 24 10:37:02 CEST 2021
Hi Alexey,
Good catch.
On Thu, Jun 24, 2021 at 4:15 PM Alexey Kodanev <aleksei.kodanev@bell-sw.com>
wrote:
> TCID can be NULL in tst_tmpdir() because it is set after do_setup():
>
> tst_run_tcases()
> do_setup()
> ...
> tid = get_tid();
> ...
> tst_tmpdir() /* using TCID here */
> TCID = tid;
>
> Signed-off-by: Alexey Kodanev <aleksei.kodanev@bell-sw.com>
>
Reviewed-by: Li Wang <liwang@redhat.com>
--
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20210624/342af4b5/attachment-0001.htm>
More information about the ltp
mailing list