[yocto] [ptest-runner] timeout option missing the argument option ":" to getopt

Aníbal Limón anibal.limon at linux.intel.com
Mon May 29 09:17:17 PDT 2017



On 05/29/2017 10:54 AM, Aníbal Limón wrote:
> Hi Anders,
> 
> Thanks for notice this issue, i will integrate the patch.

Integrated, thanks,

http://git.yoctoproject.org/cgit/cgit.cgi/ptest-runner2/commit/?id=8a93832dad621535e90aa8e1fb74ae5ba743fc3e

> 
> 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/8f5529c5/attachment.pgp>


More information about the yocto mailing list