Patchwork [6,of,8] test-mq: conditionalize output instead of tests

login
register
mail settings
Submitter Matt Harbison
Date July 9, 2017, 1:11 a.m.
Message ID <f2cdd7055b37ed3ad241.1499562664@Envy>
Download mbox | patch
Permalink /patch/22150/
State Accepted
Headers show

Comments

Matt Harbison - July 9, 2017, 1:11 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1499553972 14400
#      Sat Jul 08 18:46:12 2017 -0400
# Node ID f2cdd7055b37ed3ad241bc9340d256af5b9f9379
# Parent  c09262204a6f667250cb120e58ef469fba7b9cdd
test-mq: conditionalize output instead of tests

Patch

diff --git a/tests/test-mq.t b/tests/test-mq.t
--- a/tests/test-mq.t
+++ b/tests/test-mq.t
@@ -932,27 +932,17 @@ 
 #endif
   $ hg add new
   $ hg qrefresh
-#if execbit
+
   $ cat .hg/patches/new
   new file
   
   diff --git a/new b/new
-  new file mode 100755
+  new file mode 100755 (execbit !)
+  new file mode 100644 (no-execbit !)
   --- /dev/null
   +++ b/new
   @@ -0,0 +1,1 @@
   +foo
-#else
-  $ cat .hg/patches/new
-  new file
-  
-  diff --git a/new b/new
-  new file mode 100644
-  --- /dev/null
-  +++ b/new
-  @@ -0,0 +1,1 @@
-  +foo
-#endif
 
   $ hg qnew -m'copy file' copy
   $ hg cp new copy