Skip to content

Commit

Permalink
skip error.t if running as root
Browse files Browse the repository at this point in the history
  • Loading branch information
eserte committed Feb 7, 2023
1 parent bd5b3f3 commit 497510a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions t/error.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# -*- perl -*-

#
# $Id: error.t,v 1.2 2008/02/08 22:30:43 eserte Exp $
# Author: Slaven Rezic
#

Expand All @@ -18,13 +17,12 @@ BEGIN {
print "1..0 # skip: no Tk, File::Temp and/or Test::More module\n";
exit;
}

if ($^O eq 'MSWin32') {
print "1..0 # skip: Does not work under MSWin32, probably\n";
exit;
}
}

plan skip_all => "Does not work under MSWin32, probably" if $^O eq 'MSWin32';

plan skip_all => "Error case cannot be reproduced when running as root" if $> == 0;

use Tk::Getopt;

plan tests => 4;
Expand Down

0 comments on commit 497510a

Please sign in to comment.