Detect duplicate objects

Creating a monitor or a listener twice is now detected and the proper
error is printed.
This commit is contained in:
Markus Makela
2016-12-03 11:31:18 +02:00
parent be7a315614
commit 9df3f154cf
7 changed files with 71 additions and 39 deletions

View File

@ -72,7 +72,7 @@ test1()
ss_info_dassert(serviceCreateListener(service, "TestProtocol", "testprotocol",
"localhost", 9876, "MySQLAuth", NULL, NULL),
"Add Protocol should succeed");
ss_info_dassert(0 != serviceHasProtocol(service, "testprotocol", "localhost", 9876),
ss_info_dassert(0 != serviceHasListener(service, "testprotocol", "localhost", 9876),
"Service should have new protocol as requested");
return 0;