From 6e07def560b211d9a1a3221862e72b7aeb4a31b3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 19 Apr 2020 23:19:37 +0000 Subject: testcommon: spawn-aware system() and qx[] workalikes Barely noticeable on Linux, but this gives a 1-2% speedup on a FreeBSD 11.3 VM and lets us use built-in redirects rather than relying on /bin/sh. --- t/nulsubject.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 't/nulsubject.t') diff --git a/t/nulsubject.t b/t/nulsubject.t index b21507c2..1ded88d3 100644 --- a/t/nulsubject.t +++ b/t/nulsubject.t @@ -25,7 +25,8 @@ my $git_dir = "$tmpdir/a.git"; body => "hello world\n", )); $im->done; - is(system(qw(git --git-dir), $git_dir, 'fsck', '--strict'), 0, 'git fsck ok'); + is(xsys(qw(git --git-dir), $git_dir, 'fsck', '--strict'), 0, + 'git fsck ok'); } done_testing(); -- cgit v1.2.3-24-ge0c7