From 9261b5e9b56019fdba8426f1fb0aa1ef1dc2d18a Mon Sep 17 00:00:00 2001 From: Micael Karlberg Date: Tue, 28 May 2019 12:15:03 +0200 Subject: [snmp|test] Improve the test case start The function used by "all" the agent test cases to actually run the operations have been improved. There was previously very little monitoring of the result. Have added some (minor) checks, both before trying to running the test case, and "during". Such as, is the node we attempt to use actually alive. Then, when we spawn the test case runner process on the (remote) node, make it report back before trying to run the actuall test case (so we know that the spawn worked. Also added a monitor of the process, so that we will detect fatal errors. OTP-15764 --- lib/snmp/test/snmp_test_lib.hrl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/snmp/test/snmp_test_lib.hrl') diff --git a/lib/snmp/test/snmp_test_lib.hrl b/lib/snmp/test/snmp_test_lib.hrl index 335f3fff3c..dafa4cbf19 100644 --- a/lib/snmp/test/snmp_test_lib.hrl +++ b/lib/snmp/test/snmp_test_lib.hrl @@ -150,8 +150,10 @@ snmp_test_lib:print(P, ?MODULE, ?LINE, F, A)). -define(PRINT1(F, A), snmp_test_lib:print1(F, A)). +-define(PRINT1(F), ?PRINT1(F, [])). -define(EPRINT1(F, A), ?PRINT1(" " ++ F, A)). -define(PRINT2(F, A), snmp_test_lib:print2(F, A)). +-define(PRINT2(F), ?PRINT2(F, [])). -define(EPRINT2(F, A), ?PRINT2(" " ++ F, A)). -- cgit v1.2.3