[LTP] [PATCH] tst_supported_fs: Implement checking paths against skiplist

Petr Vorel pvorel@suse.cz
Thu Sep 22 22:26:14 CEST 2022


Hi,

> +++ b/testcases/lib/tst_supported_fs.c
...
>  	/* fs_type */
>  	if (optind < argc) {
> -		if (argv[optind][0] == '\0')
> +		if (fsname) {
> +			fprintf(stderr, "Can't specify fs_type and -d together\n");
> +			usage();
> +			return 2;
> +
nit: remove this extra line before merging.
> +		}
> +
> +		fsname = argv[optind];
> +	}
...

Kind regards,
Petr


More information about the ltp mailing list