mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-23 00:24:47 +08:00
Experimental parallel testing for library.
This commit is contained in:
@@ -40,11 +40,13 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
struct mosquittopp_test *mosq;
|
||||
|
||||
int port = atoi(argv[1]);
|
||||
|
||||
mosqpp::lib_init();
|
||||
|
||||
mosq = new mosquittopp_test("subscribe-qos2-test");
|
||||
|
||||
mosq->connect("localhost", 1888, 60);
|
||||
mosq->connect("localhost", port, 60);
|
||||
|
||||
while(run == -1){
|
||||
mosq->loop();
|
||||
|
||||
Reference in New Issue
Block a user