commit a969ce4a8d9ed6eb1229bf9923d6710030e7aef7
parent 2bed827c2ef4f93f255eed917b81cde62006abe2
Author: Kyle Milz <kyle@0x30.net>
Date: Mon, 9 Oct 2017 22:24:40 -0600
t: use citrun_gltest so no DISPLAY necessary
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/t/gl_nodir.t b/t/gl_nodir.t
@@ -7,16 +7,16 @@ use t::utils;
plan tests => 3;
-my $gl = Test::Cmd->new( prog => 'bin/citrun_gl', workdir => '' );
+my $gl = Test::Cmd->new( prog => 'bin/citrun_gltest', workdir => '' );
my $procdir = $gl->workdir . "/procdir/";
$ENV{CITRUN_PROCDIR} = $procdir;
# Create a file in the exact place the directory is supposed to be.
$gl->write( 'procdir', '' );
-$gl->run();
+$gl->run( args => '/dev/null' );
-my $err_good = "citrun_gl: opendir '$procdir': Not a directory";
-is( $gl->stdout, '', 'is stdout silent' );
+my $err_good = "citrun_gltest: opendir '$procdir': Not a directory";
+isnt( $gl->stdout, '', 'is stdout not silent' );
like( $gl->stderr, qr/$err_good/, 'is stderr silent' );
is( $? >> 8, 1, 'is exit code nonzero' );