]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/spawn.t
t/cmd_ipc: allow extra errors and add diagnostics
[public-inbox.git] / t / spawn.t
index a17b72d97ff5926d41477647b0ffc273d16d5dc2..6168c1f6171c83919efefa91d7194a5a8b069c1b 100644 (file)
--- a/t/spawn.t
+++ b/t/spawn.t
@@ -121,6 +121,12 @@ EOF
        isnt($?, 0, '$? set properly: '.$?);
 }
 
+{
+       local $ENV{GIT_CONFIG} = '/path/to/this/better/not/exist';
+       my $fh = popen_rd([qw(env)], { GIT_CONFIG => undef });
+       ok(!grep(/^GIT_CONFIG=/, <$fh>), 'GIT_CONFIG clobbered');
+}
+
 { # ->CLOSE vs ->DESTROY waitpid caller distinction
        my @c;
        my $fh = popen_rd(['true'], undef, { cb => sub { @c = caller } });