diff options
| author | Sven Nierlein <sven@nierlein.de> | 2014-01-20 00:54:34 +0100 |
|---|---|---|
| committer | Sven Nierlein <sven@nierlein.de> | 2014-01-20 00:54:34 +0100 |
| commit | b418181dfe80dd75169b6e8a619ac1932155dea2 (patch) | |
| tree | cad9c0ae0eae8e800cfff60555ead06ad33c6856 /t/Monitoring-Plugin-Performance-02.t | |
| parent | 1cd8d1c52cbd47121f344c4074aec84653f412ce (diff) | |
| download | monitoring-plugin-perl-b418181dfe80dd75169b6e8a619ac1932155dea2.tar.gz | |
renamed module into Monitoring::Plugin
since the complete monitoring team has been renamed, we
also rename this module.
Signed-off-by: Sven Nierlein <sven@nierlein.de>
Diffstat (limited to 't/Monitoring-Plugin-Performance-02.t')
| -rw-r--r-- | t/Monitoring-Plugin-Performance-02.t | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/t/Monitoring-Plugin-Performance-02.t b/t/Monitoring-Plugin-Performance-02.t new file mode 100644 index 0000000..c024685 --- /dev/null +++ b/t/Monitoring-Plugin-Performance-02.t | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | |||
| 2 | use strict; | ||
| 3 | use Test::More tests => 3; | ||
| 4 | use_ok("Monitoring::Plugin::Performance", use_die => 1); | ||
| 5 | |||
| 6 | eval { Monitoring::Plugin::Functions::plugin_die("Testing") }; | ||
| 7 | is( $@, "MONITORING-PLUGIN-PERFORMANCE-02 UNKNOWN - Testing\n", "use_die correctly set on import"); | ||
| 8 | |||
| 9 | |||
| 10 | use_ok("Monitoring::Plugin::Performance"); | ||
| 11 | eval { Monitoring::Plugin::Functions::plugin_die("Test OK exit", 0) }; | ||
| 12 | |||
| 13 | fail("Should not get here if code works correctly because prior plugin_die should have exited"); | ||
