[LTP] [PATCH v3 26/29] ltp-aiodio/dio_read: Convert to runtime

Petr Vorel pvorel@suse.cz
Tue May 24 10:36:00 CEST 2022


Hi Cyril,

...
> +++ b/testcases/kernel/io/ltp-aiodio/dio_read.c
> @@ -51,6 +51,9 @@ static void do_buffered_writes(int fd, char *bufptr, long long fsize, long long
>  			tst_brk(TBROK, "pwrite: wrote %lld bytes out of %lld", w, wsize);

>  		SAFE_FSYNC(fd);
> +
> +		if (!tst_remaining_runtime())
> +			return;
>  	}
>  }

> @@ -75,6 +78,11 @@ static int do_direct_reads(char *filename, char *bufptr, long long fsize, long l
>  				goto exit;
>  			}

> +			if (!tst_remaining_runtime()) {
> +				tst_res(TINFO, "Test out of runtime, exitting");
nit: s/exitting/exiting/

Kind regards,
Petr

> +				goto exit;


More information about the ltp mailing list