From patchwork Sun Jul 9 01:11:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [5,of,8] test-annotate: conditionalize output instead of tests From: Matt Harbison X-Patchwork-Id: 22148 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Sat, 08 Jul 2017 21:11:03 -0400 # HG changeset patch # User Matt Harbison # Date 1499553524 14400 # Sat Jul 08 18:38:44 2017 -0400 # Node ID c09262204a6f667250cb120e58ef469fba7b9cdd # Parent b446bf544853137de0dda5bd154b9b8159089682 test-annotate: conditionalize output instead of tests diff --git a/tests/test-annotate.t b/tests/test-annotate.t --- a/tests/test-annotate.t +++ b/tests/test-annotate.t @@ -553,28 +553,20 @@ annotate missing file $ rm baz -#if windows + $ hg annotate -ncr "wdir()" baz - abort: $TESTTMP\repo\baz: The system cannot find the file specified + abort: $TESTTMP\repo\baz: The system cannot find the file specified (windows !) + abort: No such file or directory: $TESTTMP/repo/baz (no-windows !) [255] -#else - $ hg annotate -ncr "wdir()" baz - abort: No such file or directory: $TESTTMP/repo/baz - [255] -#endif annotate removed file $ hg rm baz -#if windows + $ hg annotate -ncr "wdir()" baz - abort: $TESTTMP\repo\baz: The system cannot find the file specified + abort: $TESTTMP\repo\baz: The system cannot find the file specified (windows !) + abort: No such file or directory: $TESTTMP/repo/baz (no-windows !) [255] -#else - $ hg annotate -ncr "wdir()" baz - abort: No such file or directory: $TESTTMP/repo/baz - [255] -#endif $ hg revert --all --no-backup --quiet $ hg id -n