Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
DejaGnu generates an UNRESOLVED result if a test script fails with a
Tcl error; this commit provides analogous handling for failing unit
test programs that do not emit the expected "END" marker.
|
|
|
|
|
|
This dance has minimal impact on other shells but is needed for the
auxiliary command launcher tests to pass with Zsh. Also including it
in the main runtest launcher script should not hurt.
|
|
|
|
|
|
|
|
|
|
This is primarily for DejaGnu development, and allows the dejagnu(1)
script to be easily tested under a variety of shells.
|
|
|
|
The Autoconf manual recommends the use of a space on #! lines.
|
|
Apparently DejaGnu had never before been run in an environment where
whoami(1) did not work, as the catch commands here did not actually
catch a failure. The code here has also been cleaned up into a more
straightforward form that eliminates an unneeded temporary variable.
|
|
These were found with "grep -R Franklin *" at the top of the sources.
|
|
These varied, with some being in mixed style and others incomplete.
|
|
The old GPL notice previously used in DejaGnu contained instructions to
write to the FSF to request a copy of the GPL. Unfortunately, the FSF
office has moved, and the FSF now recommends citing a URL as a more
stable address from which users can obtain a copy of the GPL if needed.
This patch was automated.
|
|
|
|
This commit also fixes a missing separator line in autogen.sh.
|
|
|
|
|
|
|
|
|
|
Report both the full command and the timeout value consistently across
various communication protocols, and always always output the report to
the log file, so that procedures do not have to be locally overridden to
extract this data where needed to reproduce an issue by hand.
* baseboards/qemu.exp (qemu_load): Add execution reporting.
* config/gdb-comm.exp (gdb_comm_load): Likewise.
* config/gdb_stub.exp (gdb_stub_load): Likewise.
* config/sim.exp (sim_load): Likewise.
* config/unix.exp (unix_load): Report full command in addition
to timeout value.
|
|
The `test_timeout' global parameter was added with commit 73db65f53795,
however for the `unix' protocol only and then only in the local case.
Update the remote case of the `unix' protocol, other protocols that use
various timeout sources, and the `qemu' board to take any `test_timeout'
setting into account as appropriate. Amend the manual accordingly.
* baseboards/qemu.exp (qemu_load): Respect global `test_timeout'
setting.
* config/gdb-comm.exp (gdb_comm_load): Likewise.
* config/gdb_stub.exp (gdb_stub_load): Likewise.
* config/sim.exp (sim_load): Likewise.
* config/unix.exp (unix_load): Likewise, in the remote case.
* doc/dejagnu.texi (Local configuration file): Update
accordingly.
|
|
Move the setting of `testcase_timeout' earlier on in `gdb_comm_load'.
It will be needed for reporting later on. No semantics change.
* config/gdb-comm.exp (gdb_comm_load): Set `testcase_timeout'
earlier on.
|
|
The `test_timeout' global parameter is expected to be optionally set by
a board description file and then taken into account by `unix_load' to
override the default of 300. However not only the procedure checks for
the override but it sets the global parameter to the default as well if
not present. This might make a minuscule TCL interpreter execution time
reduction, but seems rather awkward from the programming style's point
of view, and may cause undesired effects if the parameter is referred
elsewhere.
Remove the setting of the global parameter then, while retaining its
semantics.
* config/unix.exp (unix_load): Don't ever set `test_timeout',
just use it locally.
|
|
|
|
The problem with using [info exists target_alias] is that target_alias
is unconditionally initialized to the empty string and therefore always
exists.
|
|
|
|
|
|
Previously, this test did not ensure that the command-line value for
--objdir was in force immediately after loading the local init file.
This allowed ::dejagnu::command_line::restore_cmd_vars to do nothing,
yet the test would still pass.
|
|
|
|
|
|
|
|
|
|
The previous name was confusingly similar to the test programs.
|
|
|
|
|
|
|
|
The "END" message is now produced upon normal exit, without requiring that
the totals() function or method be called. The C++ API now emits totals
only when the last TestState object in the program is destroyed, instead
of every time a TestState object is destroyed. This required adding code
to track the number of live TestState objects.
|
|
Also tidy the TestState constructor.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|