Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
paho.mqtt.c
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eclipse
paho.mqtt.c
Commits
1d9b394c
Commit
1d9b394c
authored
Apr 21, 2017
by
Ian Craggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce log verbosity for test 2d
parent
dcf457e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
test5.c
test/test5.c
+11
-12
No files found.
test/test5.c
View file @
1d9b394c
...
...
@@ -1017,16 +1017,19 @@ int test2d(struct Options options)
fprintf
(
xml
,
"<testcase classname=
\"
test2d
\"
name=
\"
%s
\"
"
,
testname
);
global_start_time
=
start_clock
();
// As reported in https://github.com/eclipse/paho.mqtt.c/issues/190
// there is/was some race condition, which caused _sometimes_ that the library failed to detect,
// that the connect attempt has already failed.
// Therefore we need to test this several times!
for
(
iteration
=
0
;
!
failures
&&
(
iteration
<
20
)
;
iteration
++
)
{
count
=
0
;
// As reported in https://github.com/eclipse/paho.mqtt.c/issues/190
// there is/was some race condition, which caused _sometimes_ that the library failed to detect,
// that the connect attempt has already failed.
// Therefore we need to test this several times!
for
(
iteration
=
0
;
!
failures
&&
(
iteration
<
20
)
;
iteration
++
)
{
count
=
0
;
MQTTAsync_setTraceLevel
(
MQTTASYNC_TRACE_ERROR
);
rc
=
MQTTAsync_create
(
&
c
,
options
.
mutual_auth_connection
,
"test2d"
,
MQTTCLIENT_PERSISTENCE_DEFAULT
,
NULL
);
assert
(
"good rc from create"
,
rc
==
MQTTASYNC_SUCCESS
,
"rc was %d
\n
"
,
rc
);
if
(
rc
!=
MQTTASYNC_SUCCESS
)
{
MQTTAsync_destroy
(
&
c
);
...
...
@@ -1050,10 +1053,6 @@ int test2d(struct Options options)
opts
.
ssl
=
&
sslopts
;
if
(
options
.
server_key_file
!=
NULL
)
opts
.
ssl
->
trustStore
=
options
.
server_key_file
;
/*file of certificates trusted by client*/
opts
.
ssl
->
keyStore
=
NULL
;
/*file of certificate for client to present to server - In this test the client has no certificate! */
//if (options.client_key_pass != NULL)
// opts.ssl->privateKeyPassword = options.client_key_pass;
//opts.ssl->enabledCipherSuites = "DEFAULT";
//opts.ssl->enabledServerCertAuth = 0;
test2dFinished
=
0
;
MyLog
(
LOGA_DEBUG
,
"Connecting"
);
...
...
@@ -1081,7 +1080,7 @@ int test2d(struct Options options)
failures
++
;
}
MQTTAsync_destroy
(
&
c
);
}
}
MyLog
(
LOGA_INFO
,
"%s: test %s. %d tests run, %d failures."
,
(
failures
==
0
)
?
"passed"
:
"failed"
,
testname
,
tests
,
failures
);
write_test_result
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment