diff --git a/tests/test-check-code-hg.t b/tests/test-check-code-hg.t
index 73aaff46175b17b03283369d92fd2f0aa88a2644_dGVzdHMvdGVzdC1jaGVjay1jb2RlLWhnLnQ=..f680ed10e2c4a2f92b30723f7d74c9b3b51db60b_dGVzdHMvdGVzdC1jaGVjay1jb2RlLWhnLnQ= 100644
--- a/tests/test-check-code-hg.t
+++ b/tests/test-check-code-hg.t
@@ -1,5 +1,5 @@
   $ check_code="$TESTDIR"/../contrib/check-code.py
   $ cd "$TESTDIR"/..
 
-  $ "$check_code" `hg manifest` || echo 'FAILURE IS NOT AN OPTION!!!'
+  $ hg manifest | xargs "$check_code" || echo 'FAILURE IS NOT AN OPTION!!!'
 
@@ -5,5 +5,5 @@
 
-  $ "$check_code" --warnings --nolineno --per-file=0 `hg manifest`
+  $ hg manifest | xargs "$check_code" --warnings --nolineno --per-file=0
   contrib/check-code.py:0:
    > #    (r'^\s+[^_ \n][^_. \n]+_[^_\n]+\s*=', "don't use underbars in identifiers"),
    warning: line over 80 characters
@@ -657,4 +657,4 @@
   tests/test-walkrepo.py:0:
    >         print "Found %d repositories when I should have found 3" % (len(reposet),)
    warning: line over 80 characters
-  [1]
+  [123]