mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-20 12:12:15 +00:00
fuzz: adapt harness for v0.9.0 rebase
v0.9.0 already carries the ifcopenshell::file rename this harness was originally adapted for, but moved Logger into the ifcopenshell namespace too (logger::root() -> ifcopenshell::logger::root()) and never had a BUILD_ONLY_COMMON_SCHEMAS cmake option - schema selection there has always been via the SCHEMA_VERSIONS list. Verified with -fsyntax-only against the system-installed v0.9.0 headers.
This commit is contained in:
@@ -48,7 +48,7 @@ bool is_regular_file(const char* path) {
|
||||
extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv) {
|
||||
for (int i = 1; i < *argc; ++i) {
|
||||
if (is_regular_file((*argv)[i])) {
|
||||
logger::root().set_output(&std::cerr, &std::cerr);
|
||||
ifcopenshell::logger::root().set_output(&std::cerr, &std::cerr);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user