Applied Benoit Belley's patch in ticket 1957 improve the robustness of
authorgaryo <garyo@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 29 Oct 2008 03:01:00 +0000 (03:01 +0000)
committergaryo <garyo@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 29 Oct 2008 03:01:00 +0000 (03:01 +0000)
commita924a6a203fc1ebb3320a99cf1639acb169fd8e3
tree93f780a267396d95f9bfeba9c48da963a81abf05
parentd23f87b2b9703c0adc0c544ef204c2851d1caafc
Applied Benoit Belley's patch in ticket 1957 improve the robustness of
GetBuildFailures().  New function convert_to_buildError, and use it in
several places so all build failures now go through it and are
returned as BuildError exceptions.  Had a small effect on output
formatting in many tests but no significant change to behavior.  I
reworked the patch a little to keep SCons exit status values the same
as before; this patch could make it simpler to change them in some
cases, e.g. exit with the errno of the failed action if desired.  One
nice side effect of this patch is that more scons errors print the
node that caused the error now.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3744 fdb21ef1-2011-0410-befe-b5e4ea1792b1
25 files changed:
QMTest/TestCommon.py
src/engine/SCons/Action.py
src/engine/SCons/CacheDirTests.py
src/engine/SCons/Errors.py
src/engine/SCons/ErrorsTests.py
src/engine/SCons/Executor.py
src/engine/SCons/Node/FSTests.py
src/engine/SCons/Script/Main.py
src/engine/SCons/Taskmaster.py
src/engine/SCons/TaskmasterTests.py
src/script/scons.py
test/Alias/errors.py
test/Configure/Action-error.py
test/Errors/Exception.py
test/GetBuildFailures/serial.py
test/Libs/SharedLibrary.py
test/Parallel/multiple-parents.py
test/RCS/diskcheck.py
test/Scanner/exception.py
test/builderrors.py
test/exceptions.py
test/nonexistent.py
test/option/debug-stacktrace.py
test/symlink/dangling-include.py
test/symlink/dangling-source.py