mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-08-20 21:41:40 +08:00
Experimental parallel testing for library.
This commit is contained in:
@@ -20,12 +20,14 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
struct mosquittopp_test *mosq;
|
||||
|
||||
int port = atoi(argv[1]);
|
||||
|
||||
mosqpp::lib_init();
|
||||
|
||||
mosq = new mosquittopp_test("01-will-set");
|
||||
mosq->will_set("topic/on/unexpected/disconnect", strlen("will message"), "will message", 1, true);
|
||||
|
||||
mosq->connect("localhost", 1888, 60);
|
||||
mosq->connect("localhost", port, 60);
|
||||
|
||||
while(run == -1){
|
||||
mosq->loop();
|
||||
|
||||
Reference in New Issue
Block a user