# HG changeset patch # User Pierre-Yves David # Date 2014-05-30 19:10:56 # Node ID 7ec3b32b98bb3a503a88eab867d801ea6fbe1787 # Parent 8a63e691179a4cefacefd7ae1bb1fc9e9a2f6c6d test-run-tests.t: test running a failing test diff --git a/tests/test-run-tests.t b/tests/test-run-tests.t --- a/tests/test-run-tests.t +++ b/tests/test-run-tests.t @@ -18,3 +18,27 @@ a succesful test $ $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]