[LTP] [PATCH 2/2] lib: Create tst_tmpdir.h

Cyril Hrubis chrubis@suse.cz
Fri Jun 21 12:15:34 CEST 2024


Hi!
> diff --git a/include/tst_tmpdir.h b/include/tst_tmpdir.h
> new file mode 100644
> index 000000000..b4f95b666
> --- /dev/null
> +++ b/include/tst_tmpdir.h
> @@ -0,0 +1,15 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> +/*
> + * Copyright (c) 2017 Cyril Hrubis <chrubis@suse.cz>
> + * Copyright (c) 2020 Martin Doucha <mdoucha@suse.cz>
> + */
> +
> +#ifndef TST_TMPDIR_H__
> +#define TST_TMPDIR_H__
> +
> +/*
> + * Wipe the contents of given directory but keep the directory itself
> + */

This should ideally a proper documentation comment, but that can be done
in an follow up patch.

Reviewed-by: Cyril Hrubis <chrubis@suse.cz>

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list