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

Anders Wallin wallinux at gmail.com
Sun May 28 02:47:00 PDT 2017


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);
-- 
2.11.0




More information about the yocto mailing list