Mercurial > hg-stable
changeset 21738:7ec3b32b98bb
test-run-tests.t: test running a failing test
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 30 May 2014 12:10:56 -0700 |
parents | 8a63e691179a |
children | 11e5ad038a7b |
files | tests/test-run-tests.t |
diffstat | 1 files changed, 24 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-run-tests.t Fri Jun 13 16:36:53 2014 -0500 +++ b/tests/test-run-tests.t Fri May 30 12:10:56 2014 -0700 @@ -18,3 +18,27 @@ $ $TESTDIR/run-tests.py --with-hg=`which hg` . # Ran 1 tests, 0 skipped, 0 warned, 0 failed. + +failing test +================== + + $ cat > test-failure.t << EOF + > $ echo babar + > rataxes + > EOF + + $ $TESTDIR/run-tests.py --with-hg=`which hg` + + --- $TESTTMP/test-failure.t + +++ $TESTTMP/test-failure.t.err + @@ -1,2 +1,2 @@ + $ echo babar + - rataxes + + babar + + ERROR: test-failure.t output changed + !. + Failed test-failure.t: output changed + # Ran 2 tests, 0 skipped, 0 warned, 1 failed. + python hash seed: * (glob) + [1]