nagios4/tap/tests/diag/test.pl
2017-05-19 22:22:40 +02:00

17 lines
260 B
Perl

#!/usr/bin/perl
use warnings;
use strict;
use Test::More;
my $rc = 0;
plan tests => 2;
$rc = diag("A diagnostic message");
diag("Returned: $rc");
ok(1, 'test 1') or diag "ok() failed, and shouldn't";
ok(0, 'test 2') or diag "ok() passed, and shouldn't";