2019-10-29 12:33:29 +00:00
|
|
|
#include <catch_main.hpp>
|
2019-10-15 07:40:40 +00:00
|
|
|
|
|
|
|
#include "libslic3r/libslic3r.h"
|
2022-02-09 12:22:19 +00:00
|
|
|
|
|
|
|
// __has_feature() is used later for Clang, this is for compatibility with other compilers (such as GCC and MSVC)
|
|
|
|
#ifndef __has_feature
|
|
|
|
# define __has_feature(x) 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// Print reports about memory leaks but exit with zero exit code when any memory leaks is found to make unit tests pass.
|
|
|
|
// After merging the stable branch (2.4.1) with the master branch, this should be deleted.
|
|
|
|
#if __has_feature(address_sanitizer) || defined(__SANITIZE_ADDRESS__)
|
|
|
|
extern "C" {
|
|
|
|
const char *__lsan_default_options() {
|
|
|
|
return "exitcode=0";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|