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
8fff598c
Commit
8fff598c
authored
Aug 27, 2013
by
Ian Craggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Latest test changes
parent
72d05f95
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
69 additions
and
67 deletions
+69
-67
MQTTAsync.c
src/MQTTAsync.c
+1
-1
MQTTClient.c
src/MQTTClient.c
+8
-5
test3.c
test/test3.c
+1
-2
test5.c
test/test5.c
+59
-59
No files found.
src/MQTTAsync.c
View file @
8fff598c
...
@@ -2737,7 +2737,7 @@ MQTTAsync_nameValue* MQTTAsync_getVersionInfo()
...
@@ -2737,7 +2737,7 @@ MQTTAsync_nameValue* MQTTAsync_getVersionInfo()
int
i
=
0
;
int
i
=
0
;
libinfo
[
i
].
name
=
"Product name"
;
libinfo
[
i
].
name
=
"Product name"
;
libinfo
[
i
++
].
value
=
"Asynchronous MQTT C Client Library"
;
libinfo
[
i
++
].
value
=
"
Paho
Asynchronous MQTT C Client Library"
;
libinfo
[
i
].
name
=
"Version"
;
libinfo
[
i
].
name
=
"Version"
;
libinfo
[
i
++
].
value
=
CLIENT_VERSION
;
libinfo
[
i
++
].
value
=
CLIENT_VERSION
;
...
...
src/MQTTClient.c
View file @
8fff598c
...
@@ -1725,14 +1725,17 @@ exit:
...
@@ -1725,14 +1725,17 @@ exit:
MQTTClient_nameValue
*
MQTTClient_getVersionInfo
()
MQTTClient_nameValue
*
MQTTClient_getVersionInfo
()
{
{
#define MAX_INFO_STRINGS
7
#define MAX_INFO_STRINGS
8
static
MQTTClient_nameValue
libinfo
[
MAX_INFO_STRINGS
+
1
];
static
MQTTClient_nameValue
libinfo
[
MAX_INFO_STRINGS
+
1
];
int
i
=
0
;
int
i
=
0
;
libinfo
[
i
].
name
=
"version"
;
libinfo
[
i
].
name
=
"Product name"
;
libinfo
[
i
++
].
value
=
"Paho Synchronous MQTT C Client Library"
;
libinfo
[
i
].
name
=
"Version"
;
libinfo
[
i
++
].
value
=
CLIENT_VERSION
;
libinfo
[
i
++
].
value
=
CLIENT_VERSION
;
libinfo
[
i
].
name
=
"
b
uild level"
;
libinfo
[
i
].
name
=
"
B
uild level"
;
libinfo
[
i
++
].
value
=
BUILD_TIMESTAMP
;
libinfo
[
i
++
].
value
=
BUILD_TIMESTAMP
;
#if defined(OPENSSL)
#if defined(OPENSSL)
libinfo
[
i
].
name
=
"OpenSSL version"
;
libinfo
[
i
].
name
=
"OpenSSL version"
;
...
...
test/test3.c
View file @
8fff598c
...
@@ -1482,8 +1482,7 @@ int main(int argc, char** argv)
...
@@ -1482,8 +1482,7 @@ int main(int argc, char** argv)
fprintf
(
xml
,
"<testsuite name=
\"
test3
\"
tests=
\"
%d
\"
>
\n
"
,
ARRAY_SIZE
(
tests
)
-
1
);
fprintf
(
xml
,
"<testsuite name=
\"
test3
\"
tests=
\"
%d
\"
>
\n
"
,
ARRAY_SIZE
(
tests
)
-
1
);
setenv
(
"MQTT_C_CLIENT_TRACE"
,
"ON"
,
1
);
setenv
(
"MQTT_C_CLIENT_TRACE"
,
"ON"
,
1
);
//setenv("MQTT_C_CLIENT_TRACE_LEVEL", "ERROR", 1);
setenv
(
"MQTT_C_CLIENT_TRACE_LEVEL"
,
"ERROR"
,
1
);
//setenv("MQTT_C_CLIENT_TRACE_LEVEL", "PROTOCOL", 1);
getopts
(
argc
,
argv
);
getopts
(
argc
,
argv
);
if
(
options
.
test_no
==
0
)
if
(
options
.
test_no
==
0
)
{
/* run all the tests */
{
/* run all the tests */
...
...
test/test5.c
View file @
8fff598c
This diff is collapsed.
Click to expand it.
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