[LTP] [PATCH v2] getxattr01: Convert to new API

Petr Vorel pvorel@suse.cz
Wed Mar 20 17:37:01 CET 2024


Hi,

> -/*
> +/*\
> + * [Description]
> + *
>   * Basic tests for getxattr(2) and make sure getxattr(2) handles error
>   * conditions correctly.
>   *

> @@ -31,112 +15,53 @@
>   *    getxattr(2) should return -1 and set errno to ENODATA
>   * 2. Buffer size is smaller than attribute value size,
>   *    getxattr(2) should return -1 and set errno to ERANGE
> - * 3. Get attribute, getxattr(2) should succeed
> - * 4. Verify the attribute got by getxattr(2) is same as the value we set
> + * 3. Get attribute, getxattr(2) should succeed, and the attribute got by
> + *    getxattr(2) should be same as the value we set
>   */

 * There are 4 test cases:
Without space here the list will not be formatted correctly :(.
Currently it's needed to add it.
 * 1. Get an non-existing attribute,
 *    getxattr(2) should return -1 and set errno to ENODATA
 * 2. Buffer size is smaller than attribute value size,
 *    getxattr(2) should return -1 and set errno to ERANGE
 * 3. Get attribute, getxattr(2) should succeed, and the attribute got by
 *    getxattr(2) should be same as the value we set

Kind regards,
Petr


More information about the ltp mailing list