]> git.lizzy.rs Git - rust.git/commit
rustpkg: Set exit codes properly and make tests take advantage of that
authorTim Chevalier <chevalier@alum.wellesley.edu>
Thu, 10 Oct 2013 20:48:11 +0000 (13:48 -0700)
committerTim Chevalier <chevalier@alum.wellesley.edu>
Sat, 12 Oct 2013 00:15:52 +0000 (17:15 -0700)
commit7472bae5e76918bad5904c31e43b4237c015d6a5
treeaadd51184b04985cc41269bacfd08530bfc0fea2
parent80878ff369cabc63967a6ebfd69f3e5fa692ceff
rustpkg: Set exit codes properly and make tests take advantage of that

When I started writing the rustpkg tests, task failure didn't set the
exit code properly. But bblum's work from July fixed that. Hooray! I
just didn't know about it till now.

So, now rustpkg uses exit codes in a more conventional way, and some of
the tests are simpler.

The bigger issue will be to make task failure propagate the error message.
Right now, rustpkg does most of the work in separate tasks, which means if
a task fails, rustpkg can't distinguish between different types of failure
(see #3408)
src/librustpkg/context.rs
src/librustpkg/exit_codes.rs
src/librustpkg/rustpkg.rs
src/librustpkg/tests.rs