From 6cce58bd53317758e40d463de943a21cb64f468c Mon Sep 17 00:00:00 2001 From: Martin Cermak Date: Tue, 7 Nov 2023 12:04:16 +0100 Subject: [PATCH] Fix timing issue causing failures of testcase auto_path.exp --- testsuite/systemtap.base/auto_path.exp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testsuite/systemtap.base/auto_path.exp b/testsuite/systemtap.base/auto_path.exp index 93331d396..2695c8f2f 100644 --- a/testsuite/systemtap.base/auto_path.exp +++ b/testsuite/systemtap.base/auto_path.exp @@ -28,6 +28,7 @@ spawn stap -I $include_root -e {probe begin {println("begin")} probe ap1.process expect { -timeout 120 -re "^begin\r\n$" { + sleep 1 exec ${cmd_dir}/a/ap1 expect { -timeout 10 @@ -43,6 +44,7 @@ spawn stap -I $include_root -e {probe begin {println("begin")} probe ap2 {printl expect { -timeout 120 -re "^begin\r\n$" { + sleep 1 exec ${cmd_dir}/a/b/ap2 expect { -timeout 10 @@ -58,6 +60,7 @@ spawn stap -I $include_root -e {probe begin {println("begin")} probe ap3 {printl expect { -timeout 120 -re "^begin\r\n$" { + sleep 1 exec ${cmd_dir}/b/ap3 expect { -timeout 10 -- 2.43.5