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
_______________________________________________
Ltrace-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/ltrace-devel