Try tests with perls system instead of exec

This commit is contained in:
Lorenz Kästle 2026-04-09 13:26:08 +02:00
parent 58bbf9f5af
commit ba7ba8b1a5
3 changed files with 4 additions and 3 deletions

View file

@ -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");

View file

@ -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");

View file

@ -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");