[yocto] [ptest-runner] timeout option missing the argument option ":" to getopt
Aníbal Limón
anibal.limon at linux.intel.com
Mon May 29 08:54:33 PDT 2017
Hi Anders,
Thanks for notice this issue, i will integrate the patch.
Cheers,
Anibal
On 05/28/2017 04:47 AM, Anders Wallin wrote:
> ptest-runner -t xx gives segfault
>
> Signed-off-by: Anders Wallin <wallinux at gmail.com>
> ---
> main.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/main.c b/main.c
> index d7a546f..505829c 100644
> --- a/main.c
> +++ b/main.c
> @@ -66,7 +66,7 @@ main(int argc, char *argv[])
> opts.ptests = NULL;
> opts.xml_filename = NULL;
>
> - while ((opt = getopt(argc, argv, "d:ltx:h")) != -1) {
> + while ((opt = getopt(argc, argv, "d:lt:x:h")) != -1) {
> switch (opt) {
> case 'd':
> free(opts.directory);
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170529/cdac781e/attachment.pgp>
More information about the yocto
mailing list