[Ltrace-devel] [PATCH] Fix spurious failures in attach-process.exp

Роман Донченко dpb at corrigendum.ru
Sun Apr 5 19:51:17 UTC 2015


Attaching immediately often leads to attaching before the process reaches
the first sleep call. Use a delay.
---
 testsuite/ltrace.minor/attach-process.exp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testsuite/ltrace.minor/attach-process.exp b/testsuite/ltrace.minor/attach-process.exp
index c050f21..1249bd3 100644
--- a/testsuite/ltrace.minor/attach-process.exp
+++ b/testsuite/ltrace.minor/attach-process.exp
@@ -26,5 +26,6 @@ set bin [ltraceCompile {} [ltraceSource c {
 }]]
 
 spawn $bin
+sleep 1
 ltraceMatch1 [ltraceRun -S -p [exp_pid]] { sleep\(} == 1
 ltraceDone
-- 
1.8.5.6




More information about the Ltrace-devel mailing list