[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tests failing sometimes

From: Michael Chastain
Subject: Re: tests failing sometimes
Date: Fri, 13 Aug 2004 14:28:10 -0400
User-agent: nail 10.8 6/28/04

Baurjan Ismagulov <address@hidden> wrote:
> system "echo \"main(){}\" >a.c"
> gdb_compile a.c a executable {debug additional_flags=-w}
> gdb_start
> send_gdb "file a\n"
> gdb_test "l main" {1.main\(\){}.*} "a"

Like Daniel said, you're de-synchronizing on the prompt that gdb
prints after "file a".  send_gdb needs to pair with gdb_expect.


  gdb_test "file a" ""
  gdb_test "l main" {1.main\(\){}.*} "a"

Michael C

reply via email to

[Prev in Thread] Current Thread [Next in Thread]