aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2016-03-29 * lib/remote.exp (remote_expect): Fix spelling error.Ben Elliston1-2/+4
2016-03-29More fixes identified by the Frink static analyser:Ben Elliston1-2/+2
(1) use -- in switch commands for safety, (2) add braces around exprs, (3) replace abbreviated "info proc" with "info procs", (4) use -- in regexp commands for safety where the expression is a variable that could begin with '-'.
2016-03-28 * dg.exp (dg-do): Do not change the previously selected action ifDominik Vogt1-1/+4
a de-selected dg-do is encountered. Signed-off-by: Ben Elliston <bje@gnu.org>
2016-03-28This proc is never used. --xml sets $xml, and that's it.Ben Elliston1-11/+3
* lib/framework.exp (check_xml): Remove unused proc.
2016-03-28 * lib/dmucs.exp: New.Rob Savoye1-0/+50
Signed-off-by: Ben Elliston <bje@gnu.org>
2016-03-28 * lib/libgloss.exp (find_g++): Look for xgcc++ to use the freshlyRob Savoye1-3/+7
built compiler, then look in the path. Signed-off-by: Ben Elliston <bje@gnu.org>
2016-03-28 * lib/utils.exp (which): Don't exclude symbolic links--Debian'sBen Elliston1-8/+7
/bin/which doesn't. Modern systems rely too heavily on symbolic links (eg. alternatives).
2016-03-28 * lib/rlogin.exp (rlogin_open): Return -1 if unable to spawnBen Elliston1-1/+1
rlogin. Identified by Frink.
2016-03-28 * runtest.exp: Fixes identified by the Frink static analyser:Ben Elliston8-49/+38
(1) use -- in switch commands for safety, (2) remove unreachable return commands after error commands, (3) replace abbreviated "info proc" with "info procs", (4) use -- in unset commands for safety where the variable name is itself a variable. * lib/dg.exp: Likewise. * lib/debugger.exp: Likewise. * lib/framework.exp: Likewise. * lib/remote.exp: Likewise. * lib/target.exp: Likewise. * lib/targetdb.exp: Likewise. * lib/telnet.exp: Likewise. * lib/utils.exp: Likewise.
2016-03-28 * lib/framework.exp (exp_continue): Remove old compatibilityBen Elliston1-10/+0
wrapper. Expect deprecated 'continue -expect' in August 1997.
2016-03-28 * lib/utils.exp (which): Reimplement to more closely mimic theBen Elliston1-10/+20
behaviour of the UNIX which utility. * testsuite/runtest.all/utils.test: Test proc which.
2016-03-27 * lib/remote.exp (standard_wait): Append any trailing charactersBen Elliston1-6/+4
to $output that may be still in $expect_out(buffer) when eof is matched. Remove arbitrary limitation in the ".+" matching case, similar to the change to local_exec on 2016-02-17.
2016-03-22 * lib/target.exp (only--Ls): Change '???' comment to a note. ThisBen Elliston1-2/+2
isn't a serious shortcoming, but the comment should be retained.
2016-03-21 * runtest.exp: Whitespace, comment and typo fixes.Ben Elliston3-11/+17
* lib/dejagnu.exp: Likewise. * lib/remote.exp: Likewise. * lib/utils.exp: Likewise.
2016-03-21 * lib/dg.exp (dg-get-options): Clean up regular expression andBen Elliston1-3/+1
remove FIXME comment about it.
2016-03-20 * lib/dg.exp (dg-runtest): Improve arg naming to remove a FIXME.Ben Elliston1-6/+5
2016-03-20 * lib/dg.exp: Remove commented-out calls to send_user.Ben Elliston1-13/+0
2016-03-20 * lib/dg.exp (dg-test): There is no need to call unresolved toBen Elliston1-7/+2
clear errcnt. Instead, pass 0 as argument 2 to perror. * runtest.exp (runtest): Likewise.
2016-03-16This reverts commit 4d344f712298364c836038b641625b3407db2fc3. The GCCBen Elliston1-0/+69
testsuite still uses diff. 2016-03-15 Ben Elliston <bje@gnu.org> * lib/utils.exp (diff): Remove proc. * doc/ref.xml: Update documentation. * doc/dejagnu.texi: Regenerate. * NEWS: Update.
2016-03-15 * lib/utils.exp (diff): Remove proc.Ben Elliston1-69/+0
* doc/ref.xml: Update documentation. * doc/dejagnu.texi: Regenerate. * NEWS: Update.
2016-03-13 * lib/utils.exp: Whitespace fixes.Ben Elliston1-4/+0
2016-03-13 * lib/dg.exp (dg-process-target): Remove old commented code.Ben Elliston1-9/+0
* lib/dg.exp (dg-test): Likewise.
2016-03-13 * lib/dg.exp: Improve top-of-file documentation.Ben Elliston1-8/+7
2016-03-05 * lib/remote.exp (remote_exec): Restore original timeout value.Yvan Roux1-2/+3
Signed-off-by: Ben Elliston <bje@gnu.org>
2016-03-04 * lib/remote.exp (standard_upload): Remove dead code.Yvan Roux1-2/+0
Signed-off-by: Ben Elliston <bje@gnu.org>
2016-02-24 * lib/utils.exp (prune): Restore this proc.Ben Elliston1-0/+19
* doc/ref.xml: Update documentation. * doc/dejagnu.texi: Regenerate. * NEWS: Update. This reverts commit 992fbc3a8f03c3cd5e554eea5361f1a531e9e71f.
2016-02-23 * lib/libgloss.exp (find_gdc): New proc.Iain Buclaw2-0/+38
* lib/target.exp (default_target_compile): Add D support. * NEWS: Update. Signed-off-by: Ben Elliston <bje@gnu.org>
2016-02-20 * lib/utils.exp (diff): Replace calls to verbose followed byBen Elliston1-11/+4
send_log with a single call to verbose -log. Remove additional newlines from the log messages.
2016-02-20 * lib/utils.exp (getdirs): Ignore .git and .svn directories.Ben Elliston1-0/+2
2016-02-20 * lib/utils.exp: Improve comments.Ben Elliston1-10/+1
* NEWS: Update.
2016-02-20 * lib/utils.exp (prune): Remove proc.Ben Elliston1-19/+0
* doc/ref.xml: Update documentation. * doc/dejagnu.texi: Regenerate.
2016-02-20 * lib/utils.exp (slay): Remove proc.Ben Elliston1-17/+0
* doc/ref.xml: Update documentation. * doc/dejagnu.texi: Regenerate.
2016-02-20 * lib/utils.exp (absolute): Remove proc.Ben Elliston1-15/+0
* doc/ref.xml: Update documentation. * doc/dejagnu.texi: Regenerate.
2016-02-20 * lib/utils.exp (psource): Remove proc.Ben Elliston1-20/+0
* doc/ref.xml: Update documentation. * doc/dejagnu.texi: Regenerate.
2016-02-20 * lib/targetdb.exp (board_info): Simplify return logic.Ben Elliston1-10/+2
2016-02-17 * lib/target.exp (default_target_compile): Do not pass -log toBen Elliston1-3/+3
verbose when outputting the captured compiler/assembler/linker diagnostic output as it will already be in the .log file courtesy of Expect.
2016-02-17 * runtest.exp: Enable --status by default.Ben Elliston1-1/+1
(runtest): Set exit status to 2 if there is any error sourcing the Tcl scripts. * lib/framework.exp (unknown): Likewise, set exit status to 2. * doc/runtest.1: Clarify exit status codes. * NEWS: Update.
2016-02-17 * lib/remote.exp (local_exec): Call exp_continue until eof isBen Elliston1-3/+1
matched.
2016-02-15 * lib/dg.exp (dg-test): Remove comment about proc unresolved notBen Elliston1-2/+0
setting exit_status to 1 -- it does.
2016-02-15 * lib/framework.exp (cleanup): Remove do-nothing proc.Ben Elliston1-13/+0
(log_and_exit): Remove call to cleanup. * doc/ref.xml: Remove documentation for cleanup. * doc/dejagnu.texi: Regenerate.
2016-02-15 Reported by David Malcolm.Ben Elliston1-1/+1
* lib/dejagnu.exp (text): Allow angle brackets in test messages.
2016-02-14 * lib/remote.exp (remote_exec): Set global timeout for benefit ofMaxim Kuvyrkov1-0/+7
<remote>_exec. Signed-off-by: Ben Elliston <bje@gnu.org>
2016-02-14 * lib/remote.exp (local_exec): Improve comments.Ben Elliston1-16/+14
2016-01-23 * lib/remote.exp (standard_file): Reverse return logic for remoteSimon Marchi1-1/+1
exists case. Signed-off-by: Ben Elliston <bje@gnu.org>
2016-01-23 * lib/remote.exp (standard_file); Add else clause.Simon Marchi1-14/+15
Signed-off-by: Ben Elliston <bje@gnu.org>
2016-01-12 * lib/remote.exp (standard_file): The [ operator does not actuallySimon Marchi1-2/+1
output anything. It returns 0 or 1 as its exit code, so "exit `[ -f $file ]`" always expands to "exit " (equivalent to exit 0). Instead, use test(1) to check for file existence. Signed-off-by: Ben Elliston <bje@gnu.org>
2015-11-12 * lib/framework.exp (note): Remove old commented-out code.Ben Elliston1-7/+0
2015-11-11 * lib/target.exp (default_target_compile): Honor LDFLAGS_FOR_TARGET.Michael Forney1-0/+5
Signed-off-by: Ben Elliston <bje@gnu.org>
2015-07-30 * lib/remote.exp (close_wait_program): New procedure.Pedro Alves1-23/+63
(local_exec, standard_close): Use it. The code that tries to make sure that a process dies in lib/remote.exp:remote_close can kill the wrong process due to PID-reuse races. The GDB buildbots show frequent misterious FAILs that turns out are caused by this. The problem is this bit here: exec sh -c "exec > /dev/null 2>&1 && (kill -2 $pgid || kill -2 $pid) && sleep 5 && (kill $pgid || kill $pid) && sleep 5 && (kill -9 $pgid || kill -9 $pid) &" ... catch "wait -i $shell_id" When this procedure is called to close the GDB process, GDB exits promptly, but that whole cascade of kills carries on in the background, thus potentially killing the unfortunate process that manages to be spawned by one of the next tests and happens to reuse that $pid. [1] So to fix this, kill that no-longer-needed pipeline as soon as "wait" returns. There are two places in the DejaGnu with a similar pipeline, so move that to a shared procedure. [1] GDB'S testsuite spawns thousands of GDB instances and even more inferior processes, and of those inferiors, some spawn thousands of short lived threads in quick succession. Since threads and processes share the number space in Linux, all that causes PID recycling frequently. In addition, GDB's testsuite has a parallel test mode that runs several tests/DejaGnu instances at the same time, further widening the race window. Signed-off-by: Ben Elliston <bje@gnu.org>
2015-02-26 * lib/target.exp (default_target_compile): Prepend multilib_flags,H.J. Lu1-1/+1
instead of appending it. Some GCC testcases need explicit GCC options to properly run. For example gcc.target/i386/pr32219-1.c has -fpie specified explicitly: /* { dg-options "-O2 -fpie" } */ But with multlib, eg: make check-gcc RUNTESTFLAGS="--target_board='unix{-fpic}'" -fpic is appended to the command line options, which overrides the command line options specified by dg-options. multlib flags should be placed at the beginning of the command line options, not at the end. This patch updates default_target_compile to prepend multilib_flags, instead of appending it. Signed-off-by: Ben Elliston <bje@gnu.org>