[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 12/51] tests: Use g_mkdir_with_parents()
From: |
Bin Meng |
Subject: |
Re: [PATCH 12/51] tests: Use g_mkdir_with_parents() |
Date: |
Fri, 26 Aug 2022 22:49:40 +0800 |
On Thu, Aug 25, 2022 at 1:58 AM Dr. David Alan Gilbert
<dgilbert@redhat.com> wrote:
>
> * Bin Meng (bmeng.cn@gmail.com) wrote:
> > From: Bin Meng <bin.meng@windriver.com>
> >
> > Use the same g_mkdir_with_parents() call to create a directory on
> > all platforms.
> >
> > Signed-off-by: Bin Meng <bin.meng@windriver.com>
>
> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
>
> > ---
> >
> > tests/migration/stress.c | 2 +-
> > tests/qtest/migration-test.c | 6 +++---
> > tests/unit/test-crypto-tlscredsx509.c | 4 ++--
> > tests/unit/test-crypto-tlssession.c | 6 +++---
> > tests/unit/test-io-channel-tls.c | 6 +++---
> > 5 files changed, 12 insertions(+), 12 deletions(-)
> >
The exact portable replacement for mkdir() in glib is g_mkdir(), not
g_mkdir_with_parents().
I was misled by the GTK glib doc [1] before. I will change it to
g_mkdir() in v2 instead.
[1] https://docs.gtk.org/glib/?q=mkdir
Regards,
Bin
- [PATCH 07/51] tests: Avoid using hardcoded /tmp in test cases, (continued)
- [PATCH 07/51] tests: Avoid using hardcoded /tmp in test cases, Bin Meng, 2022/08/24
- [PATCH 10/51] hw/usb: dev-mtp: Use g_mkdir_with_parents(), Bin Meng, 2022/08/24
- [PATCH 11/51] qga/commands-posix-ssh: Use g_mkdir_with_parents(), Bin Meng, 2022/08/24
- [PATCH 12/51] tests: Use g_mkdir_with_parents(), Bin Meng, 2022/08/24
- [PATCH 13/51] tests/qtest: migration-test: Handle link() for win32, Bin Meng, 2022/08/24
- [PATCH 15/51] tests/qtest: Adapt {m48t59,rtc}-test cases for win32, Bin Meng, 2022/08/24
- [PATCH 08/51] block/vvfat: Unify the mkdir() call, Bin Meng, 2022/08/24
- [PATCH 14/51] backends/tpm: Exclude headers and macros that don't exist on win32, Bin Meng, 2022/08/24
- [PATCH 16/51] tests/qtest: Build e1000e-test for posix only, Bin Meng, 2022/08/24