[PATCH] tests: Tests that override EXIT (0) trap need to cleanup themselves.

Roland McGrath roland at hack.frob.com
Mon Apr 29 17:54:35 UTC 2013


> They shouldn't? It comes from commit 86be79 "Enable automake
> parallel-tests for make check."

Sorry I let that slip by.  Those are bash extensions and so they should not
be used in a script with #!/bin/sh.  But moreover, they are commands that
exist solely for interactive use and in scripts you can use more
straightforward methods (like var=`pwd` and cd "$var").

> I dunno why I thought pushd and popd would be a good idea. A simple cd
> to change the working directory instead works fine if that is better:

That's fine.


More information about the elfutils-devel mailing list