Bug 8595 - environ.exp could run on more platforms
Summary: environ.exp could run on more platforms
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: testsuite (show other bugs)
Version: 6.0
: P3 enhancement
Target Milestone: ---
Assignee: Sergio Durigan Junior
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-18 07:08 UTC by Michael Elizabeth Chastain
Modified: 2017-04-29 00:32 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Elizabeth Chastain 2003-12-18 07:08:00 UTC
[Converted from Gnats 1490]

gdb.base/environ.exp is enabled only for hppa*-hp-hpux*.  It could run on any native platform, and perhaps some embedded platforms as well.

Perhaps clone "noargs" to a "noenv" target board property?

Release:
gdb 6.0
Comment 1 Pedro Alves 2015-12-18 16:13:34 UTC
Still valid.
Comment 2 Sergio Durigan Junior 2017-03-31 17:54:06 UTC
Patch posted: https://sourceware.org/ml/gdb-patches/2017-03/msg00551.html
Comment 3 Sourceware Commits 2017-04-29 00:30:35 UTC
The master branch has been updated by Sergio Durigan Junior <sergiodj@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=45ce1b47e4490993b5c1a04f4a8acb62d9ec5039

commit 45ce1b47e4490993b5c1a04f4a8acb62d9ec5039
Author: Sergio Durigan Junior <sergiodj@redhat.com>
Date:   Fri Mar 31 13:24:36 2017 -0400

    Make environ.exp run on all platforms (and create info-program.exp)
    
    This has been on my TODO list for a while.  There's a really old bug
    about this (PR testsuite/8595), and there was no reason for
    environ.exp to be specific for hppa* targets.  So this patch removes
    this constraint, modernizes the testcase, and cleans up some things.
    Most of the tests remained, and some were rewritten (especially the
    one that checks if "show environment" works, which is something kind
    of hard to do).
    
    As a bonus, I'm adding a separated info-program.exp file containing
    all the tests related to "info program" that were present on
    environ.exp.
    
    Tested locally, everything still passes.
    
    gdb/testsuite/ChangeLog:
    2017-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
    
    	PR testsuite/8595
    	* gdb.base/environ.exp: Make test available in all architectures.
    	Move bits related to "info program" testing to
    	gdb.base/info-program.exp.  Rewrite tests to use the two new
    	procedures mentione below.
    	(test_set_show_env_var) New procedure.
    	(test_set_show_env_var_equal): Likewise.
    	* gdb.base/info-program.exp: New file.
Comment 4 Sergio Durigan Junior 2017-04-29 00:32:27 UTC
Finally fixed :-).