repo.or.cz
/
monitoring-plugins.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add Libtap as a bundled library (does not change any behaviour without --enable-libtap)
[monitoring-plugins.git]
/
tap
/
tests
/
diag
/
test.pl
blob
621dc27dee87af28c084ecf27e40373fc1900c68
1
#!/usr/bin/perl
2
3
use
warnings
;
4
use
strict
;
5
6
use
Test
::
More
;
7
8
my
$rc
=
0
;
9
10
plan tests
=>
2
;
11
12
$rc
=
diag
(
"A diagnostic message"
);
13
diag
(
"Returned:
$rc
"
);
14
15
ok
(
1
,
'test 1'
)
or
diag
"ok() failed, and shouldn't"
;
16
ok
(
0
,
'test 2'
)
or
diag
"ok() passed, and shouldn't"
;