fix: fuzzing code was broken after moving to new namespaces

This commit is contained in:
Marcus Holland-Moritz 2024-08-09 23:26:22 +02:00
parent 099a7b3727
commit 8fb9ae880b
2 changed files with 4 additions and 6 deletions

View File

@ -36,8 +36,8 @@ int main(int argc, char** argv) {
null_logger lgr;
auto& catreg = categorizer_registry::instance();
auto catmgr = std::make_shared<categorizer_manager>(lgr);
auto& catreg = writer::categorizer_registry::instance();
auto catmgr = std::make_shared<writer::categorizer_manager>(lgr);
boost::program_options::variables_map vm;
catmgr->add(catreg.create(lgr, "pcmaudio", vm));

View File

@ -23,6 +23,7 @@
#include <folly/FileUtil.h>
#include <dwarfs/tool/main_adapter.h>
#include <dwarfs_tool_main.h>
#include "test_helpers.h"
@ -54,10 +55,7 @@ int main(int argc, char** argv) {
auto args = test::parse_args(cmdline);
args.insert(args.begin(), "mkdwarfs");
try {
mkdwarfs_main(args, iol->get());
} catch (const std::exception&) {
}
tool::main_adapter(tool::mkdwarfs_main).safe(args, iol->get());
}
return 0;