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
50f0501e
Commit
50f0501e
authored
Mar 28, 2017
by
Ian Craggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tidy up test3 and CMake config
parent
34360f6a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
15 deletions
+10
-15
CMakeLists.txt
CMakeLists.txt
+1
-1
test3.c
test/test3.c
+9
-14
No files found.
CMakeLists.txt
View file @
50f0501e
...
...
@@ -17,7 +17,7 @@
# Note: on OS X you should install XCode and the associated command-line tools
PROJECT
(
"paho"
C
)
CMAKE_MINIMUM_REQUIRED
(
VERSION
3.0
)
CMAKE_MINIMUM_REQUIRED
(
VERSION
2.8
)
MESSAGE
(
STATUS
"CMake version: "
${
CMAKE_VERSION
}
)
MESSAGE
(
STATUS
"CMake system name: "
${
CMAKE_SYSTEM_NAME
}
)
...
...
test/test3.c
View file @
50f0501e
/*******************************************************************************
* Copyright (c) 2012, 201
4
IBM Corp.
* Copyright (c) 2012, 201
7
IBM Corp.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
...
...
@@ -14,7 +14,6 @@
* Allan Stockdill-Mander - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
* @file
* SSL tests for the MQ Telemetry MQTT C client
...
...
@@ -24,17 +23,17 @@
#include <string.h>
#include <stdlib.h>
#if !defined(_WINDOWS)
#if defined(_WINDOWS)
#include <windows.h>
#include <openssl/applink.c>
#define MAXHOSTNAMELEN 256
#define snprintf _snprintf
#define setenv(a, b, c) _putenv_s(a, b)
#else
#include <sys/time.h>
#include <sys/socket.h>
#include <unistd.h>
#include <errno.h>
#else
#include <windows.h>
#include <openssl/applink.c>
#define MAXHOSTNAMELEN 256
#define snprintf _snprintf
#define setenv(a, b, c) _putenv_s(a, b)
#endif
#if defined(IOS)
...
...
@@ -45,10 +44,6 @@ char persistenceStore[1024];
char
*
persistenceStore
=
NULL
;
#endif
#if 0
#include <logaX.h> /* For general log messages */
#define MyLog logaLine
#else
#define LOGA_DEBUG 0
#define LOGA_INFO 1
#include <stdarg.h>
...
...
@@ -1090,7 +1085,7 @@ int test3b(struct Options options)
MyLog
(
LOGA_DEBUG
,
"Connecting"
);
rc
=
MQTTClient_connect
(
c
,
&
opts
);
if
(
!
(
assert
(
"
Goo
d rc from connect"
,
rc
==
MQTTCLIENT_FAILURE
,
"rc was %d"
,
rc
)))
if
(
!
(
assert
(
"
Ba
d rc from connect"
,
rc
==
MQTTCLIENT_FAILURE
,
"rc was %d"
,
rc
)))
goto
exit
;
exit:
...
...
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