File: 04-no-tests.t

package info (click to toggle)
libtest-warnings-perl 0.016-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 352 kB
  • ctags: 8
  • sloc: perl: 339; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 493 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use strict;
use warnings;

use Test::More 0.88;

# if all we do is load Test::Warnings and exit, we should not add a test at END
# time. For one thing, this lets this distribution generate a compilation test
# without trying to run a plan-less test.

# last in, first out: Test::Warnings's END will run after this one
END {
    is(Test::Builder->new->current_test, 0, 'no tests run during END');

    # might as well throw this in for good measure ;)
    done_testing;
}

use Test::Warnings;