mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-05-13 04:14:06 +02:00
Use `ctest` or `make test` to run all tests. With this it's also possible to run tests on a Mac. Relative paths used in tests become absolute ones to make tests executable from any build folder. Also fixed race condition in test/broker/11-persistent-subscription-no-local.py Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
17 lines
348 B
C
17 lines
348 B
C
#ifndef PATH_HELPER_H
|
|
#define PATH_HELPER_H
|
|
|
|
#include <libgen.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <stdio.h>
|
|
#include <errno.h>
|
|
|
|
/* returns <current source directory>/<relpath> written to <dest> */
|
|
void cat_sourcedir_with_relpath(char* dest, const char* relpath) {
|
|
strcpy(dest,TEST_SOURCE_DIR);
|
|
strcat(dest, relpath);
|
|
}
|
|
|
|
#endif
|