]> git.feebdaed.xyz Git - 0xmirror/binutils-gdb.git/commit
Rewrite the "show environment" test
authorTom Tromey <tromey@adacore.com>
Tue, 9 Dec 2025 14:57:51 +0000 (07:57 -0700)
committerTom Tromey <tromey@adacore.com>
Tue, 9 Dec 2025 18:26:37 +0000 (11:26 -0700)
commit24b4b7500118c43826e8efcd0d813b5060cffb0d
tree381ce1b84b01dc255d7d4111ba879852a34fbc79
parent003de5082c532d75385be50298bdbf1e00b9901c
Rewrite the "show environment" test

In a review early in the year:

    https://inbox.sourceware.org/gdb-patches/874iz3f4ek.fsf@redhat.com/

Andrew pointed out that a new test I proposed failed with read1.
This test was essentially a copy of gdb.base/environ.exp.

I couldn't reproduce the read1 problem, but this patch rewrites the
one test there that seems like it could possibly fail in this mode.
Now it uses line-by-line mode and checks for a certain environment
variable appearing in the output.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/testsuite/gdb.base/environ.exp