From b418181dfe80dd75169b6e8a619ac1932155dea2 Mon Sep 17 00:00:00 2001 From: Sven Nierlein Date: Mon, 20 Jan 2014 00:54:34 +0100 Subject: renamed module into Monitoring::Plugin since the complete monitoring team has been renamed, we also rename this module. Signed-off-by: Sven Nierlein --- t/Monitoring-Plugin-Performance-02.t | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 t/Monitoring-Plugin-Performance-02.t (limited to 't/Monitoring-Plugin-Performance-02.t') 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 @@ + +use strict; +use Test::More tests => 3; +use_ok("Monitoring::Plugin::Performance", use_die => 1); + +eval { Monitoring::Plugin::Functions::plugin_die("Testing") }; +is( $@, "MONITORING-PLUGIN-PERFORMANCE-02 UNKNOWN - Testing\n", "use_die correctly set on import"); + + +use_ok("Monitoring::Plugin::Performance"); +eval { Monitoring::Plugin::Functions::plugin_die("Test OK exit", 0) }; + +fail("Should not get here if code works correctly because prior plugin_die should have exited"); -- cgit v1.2.3-74-g34f1