This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfa/testsuite] add test embryo for lang = minimal


Ping?

On Thu, May 22, 2003 at 05:45:19PM -0700, Joel Brobecker wrote:
> > Hmmm, it's ok, I wonder if it could be folded into langs.exp?  Also,
> > default.exp, setshow.exp, help.exp have language tests that should
> > probably be updated including the minimal language.
> 
> Is the attached better? (merged the minimal.exp test into langs.exp).
> I will be looking at setshow, default, and help momentarily.
> 
> 2003-05-22  J. Brobecker  <brobecker@gnat.com>
> 
>         * gdb.base/langs.exp: Add some tests for the "minimal" language
>         support
> 
> -- 
> Joel

> Index: langs.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/gdb.base/langs.exp,v
> retrieving revision 1.1.1.2
> diff -u -r1.1.1.2 langs.exp
> --- langs.exp	28 Jun 1999 16:03:20 -0000	1.1.1.2
> +++ langs.exp	23 May 2003 00:41:29 -0000
> @@ -145,5 +145,20 @@
>      }
>  }
>  
> +gdb_exit
> +gdb_start
> +gdb_reinitialize_dir $srcdir/$subdir
> +gdb_load $binfile
> +
> +# Try exercising the "minimal" language a bit...
> +
> +if [runto csub] then {
> +    gdb_test "set lang minimal" \
> +             "Warning: the current language does not match this frame." \
> +             "set lang to minimal"
> +    
> +    gdb_test "print x" " = 5000" "print parameter value"
> +}
> +
>  set timeout $oldtimeout
>  return 0


-- 
Joel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]