#include "MQTTClient.h"#include "Thread.h"#include <string.h>#include <stdlib.h>#include <sys/time.h>#include <sys/socket.h>#include <unistd.h>#include <errno.h>#include <stdarg.h>#include <time.h>#include <sys/timeb.h>
Go to the source code of this file.
Classes | |
| struct | Options |
| struct | thread_parms |
Macros | |
| #define | ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) |
| #define | assert(a, b, c, d) myassert(__FILE__, __LINE__, a, b, c, d) |
| #define | assert1(a, b, c, d, e) myassert(__FILE__, __LINE__, a, b, c, d, e) |
| #define | LOGA_DEBUG 0 |
| #define | LOGA_INFO 1 |
| #define | START_TIME_TYPE struct timeval |
| #define | WINAPI |
Functions | |
| long | elapsed (START_TIME_TYPE start_time) |
| void | getopts (int argc, char **argv) |
| void | lock_mutex (mutex_type amutex) |
| int | main (int argc, char **argv) |
| void | myassert (char *filename, int lineno, char *description, int value, char *format,...) |
| void | MyLog (int LOGA_level, char *format,...) |
| void | MySleep (long milliseconds) |
| START_TIME_TYPE | start_clock (void) |
| int | test1 (struct Options options) |
| thread_return_type WINAPI | test1_destroy (void *n) |
| void | unlock_mutex (mutex_type amutex) |
| void | usage (void) |
| void | write_test_result (void) |
Variables | |
| char * | cur_output = output |
| int | failures = 0 |
| START_TIME_TYPE | global_start_time |
| struct Options | options |
| char | output [3000] |
| int | tests = 0 |
| FILE * | xml |
Test for issue 675: crash when invoking MQTTClient_destroy during MQTTClient_connect
Definition in file test_connect_destroy.c.
| #define ARRAY_SIZE | ( | a | ) | (sizeof(a) / sizeof(a[0])) |
Definition at line 38 of file test_connect_destroy.c.
Definition at line 240 of file test_connect_destroy.c.
Definition at line 241 of file test_connect_destroy.c.
| #define LOGA_DEBUG 0 |
Definition at line 134 of file test_connect_destroy.c.
| #define LOGA_INFO 1 |
Definition at line 135 of file test_connect_destroy.c.
| #define START_TIME_TYPE struct timeval |
Definition at line 202 of file test_connect_destroy.c.
| #define WINAPI |
Definition at line 32 of file test_connect_destroy.c.
| long elapsed | ( | START_TIME_TYPE | start_time | ) |
Definition at line 229 of file test_connect_destroy.c.
| void getopts | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 66 of file test_connect_destroy.c.
| void lock_mutex | ( | mutex_type | amutex | ) |
Definition at line 286 of file test_connect_destroy.c.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 382 of file test_connect_destroy.c.
| void myassert | ( | char * | filename, |
| int | lineno, | ||
| char * | description, | ||
| int | value, | ||
| char * | format, | ||
| ... | |||
| ) |
Definition at line 265 of file test_connect_destroy.c.
| void MyLog | ( | int | LOGA_level, |
| char * | format, | ||
| ... | |||
| ) |
Definition at line 139 of file test_connect_destroy.c.
| void MySleep | ( | long | milliseconds | ) |
Definition at line 177 of file test_connect_destroy.c.
| START_TIME_TYPE start_clock | ( | void | ) |
Definition at line 204 of file test_connect_destroy.c.
| int test1 | ( | struct Options | options | ) |
Definition at line 324 of file test_connect_destroy.c.
| thread_return_type WINAPI test1_destroy | ( | void * | n | ) |
Definition at line 312 of file test_connect_destroy.c.
| void unlock_mutex | ( | mutex_type | amutex | ) |
Definition at line 293 of file test_connect_destroy.c.
| void usage | ( | void | ) |
Definition at line 40 of file test_connect_destroy.c.
| void write_test_result | ( | void | ) |
Definition at line 251 of file test_connect_destroy.c.
| char* cur_output = output |
Definition at line 248 of file test_connect_destroy.c.
| int failures = 0 |
Definition at line 244 of file test_connect_destroy.c.
| START_TIME_TYPE global_start_time |
Definition at line 246 of file test_connect_destroy.c.
| struct Options options |
| char output[3000] |
Definition at line 247 of file test_connect_destroy.c.
| int tests = 0 |
Definition at line 243 of file test_connect_destroy.c.
| FILE* xml |
Definition at line 245 of file test_connect_destroy.c.