[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tests failing sometimes
From: |
Baurjan Ismagulov |
Subject: |
Re: tests failing sometimes |
Date: |
Fri, 13 Aug 2004 22:02:39 +0200 |
User-agent: |
Mutt/1.5.6+20040523i |
Hello, Daniel!
On Fri, Aug 13, 2004 at 01:58:48PM -0400, Daniel Jacobowitz wrote:
> Don't use send_gdb like that; follow it with gdb_expect and anchor the
> gdb_expect on a prompt.
I've tried this before:
system "echo \"main(){}\" >a.c"
gdb_compile a.c a executable {debug additional_flags=-w}
gdb_start
send_gdb "file a\n"
gdb_expect {
-re ".*\(gdb\) " {
}
timeout {
fail "zzz"
}
}
gdb_test "l main" {1.main\(\){}.*} "a"
However:
1. It times out always. Why? How should one do that?
2. I've tried also gdb_test "file a\n" ".*\(gdb\) " "zzz"; it always
failed. Why?
3. Actually, I wanted just to discard the output; is it possible? Does
it make sense? After your explanation, I tend to think that it
doesn't, since one has to match the prompt.
Thanks much for your help!
With kind regards,
Baurjan.
- tests failing sometimes, Baurjan Ismagulov, 2004/08/13
- Re: tests failing sometimes, Daniel Jacobowitz, 2004/08/13
- Re: tests failing sometimes,
Baurjan Ismagulov <=
- Re: tests failing sometimes, Michael Chastain, 2004/08/13
- Re: tests failing sometimes, Baurjan Ismagulov, 2004/08/13
- Re: tests failing sometimes, Michael Chastain, 2004/08/13
- Re: tests failing sometimes, Michael Chastain, 2004/08/14
- Re: tests failing sometimes, Baurjan Ismagulov, 2004/08/14
- Re: tests failing sometimes, Daniel Jacobowitz, 2004/08/15
- Re: tests failing sometimes, Baurjan Ismagulov, 2004/08/16