From ba7ba8b1a5934337f232b6fdbdee7445cd7b9a9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20K=C3=A4stle?= <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 9 Apr 2026 13:26:08 +0200 Subject: [PATCH] Try tests with perls system instead of exec --- plugins/tests/check_disk.t | 2 +- plugins/tests/check_snmp.t | 3 ++- plugins/tests/check_swap.t | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/tests/check_disk.t b/plugins/tests/check_disk.t index d6099bb3..a81f447a 100755 --- a/plugins/tests/check_disk.t +++ b/plugins/tests/check_disk.t @@ -6,4 +6,4 @@ use Test::More; if (! -e "./tests/test_check_disk") { plan skip_all => "./test_check_disk not compiled - please enable libtap library to test"; } -exec "./tests/test_check_disk"; +system("./tests/test_check_disk"); diff --git a/plugins/tests/check_snmp.t b/plugins/tests/check_snmp.t index 2bdbfed1..9a238a1d 100755 --- a/plugins/tests/check_snmp.t +++ b/plugins/tests/check_snmp.t @@ -279,4 +279,5 @@ like($res->output, '/.*4.20.* | iso.3.6.1.4.1.8072.3.2.67.19=4.20+;1/', "Test mu if (! -e "./tests/test_check_snmp") { plan skip_all => "./test_check_snmp not compiled - please enable libtap library to test"; } -exec "./tests/test_check_snmp"; + +system("./tests/test_check_snmp"); diff --git a/plugins/tests/check_swap.t b/plugins/tests/check_swap.t index b3768d7f..91ed8683 100755 --- a/plugins/tests/check_swap.t +++ b/plugins/tests/check_swap.t @@ -6,4 +6,4 @@ use Test::More; if (! -e "./tests/test_check_swap") { plan skip_all => "./test_check_swap not compiled - please enable libtap library to test"; } -exec "./tests/test_check_swap"; +system("./tests/test_check_swap");