This is the mail archive of the gdb-patches@sourceware.org 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: FYI: fixlet for linux-dp.exp


>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

Pedro> I assume this would mean use "interp create".  It's even on
Pedro> dejagnu's TODO file:

Yeah.  Or possibly just with "namespace", but I think that may be harder.

Pedro> I think the trouble would be globals that _are_ supposed to be persistent
Pedro> across tests, like e.g., "portnum", or whatever other globals board
Pedro> files can come up with.  We'd need some common way to make
Pedro> those "master interp" owned variables (through aliases or env vars?).
Pedro> Alternatively, we could save/restore globals, but there's no globals
Pedro> standard naming scheme in place to make that remotely sane.

Yes, for "advertised" globals we'd have to make aliases and arrange for
them to be shared.

But, the idea is to avoid odd problems like the one I hit, where test
ordering can cause errors due to minor clashes from the choice of
local-to-the-.exp variable names.

In the end it is probably simpler to just fix our tests when random
issues crop up, than it is to try to fix dejagnu.  Plus maybe we could
use namespaces more in our own tests or something like that.

Tom


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