aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/test/snmp_test_lib.hrl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2019-05-28 12:15:03 +0200
committerMicael Karlberg <[email protected]>2019-05-28 12:23:04 +0200
commit9261b5e9b56019fdba8426f1fb0aa1ef1dc2d18a (patch)
tree04d8898ec9de2d634c153c0f605cbded1f1487e4 /lib/snmp/test/snmp_test_lib.hrl
parentfb3bbd7ce7e6ecbc7c70f7d724cb041017a73937 (diff)
downloadotp-9261b5e9b56019fdba8426f1fb0aa1ef1dc2d18a.tar.gz
otp-9261b5e9b56019fdba8426f1fb0aa1ef1dc2d18a.tar.bz2
otp-9261b5e9b56019fdba8426f1fb0aa1ef1dc2d18a.zip
[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
Diffstat (limited to 'lib/snmp/test/snmp_test_lib.hrl')
-rw-r--r--lib/snmp/test/snmp_test_lib.hrl2
1 files changed, 2 insertions, 0 deletions
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("<ERROR> " ++ F, A)).
-define(PRINT2(F, A), snmp_test_lib:print2(F, A)).
+-define(PRINT2(F), ?PRINT2(F, [])).
-define(EPRINT2(F, A), ?PRINT2("<ERROR> " ++ F, A)).