File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 5
5
#include < test/fuzz/FuzzedDataProvider.h>
6
6
#include < test/fuzz/fuzz.h>
7
7
#include < test/fuzz/util.h>
8
+ #include < test/util/setup_common.h>
8
9
#include < util/system.h>
9
10
10
11
#include < cstdint>
11
12
#include < string>
12
13
#include < vector>
13
14
14
15
namespace {
16
+ void initialize_system ()
17
+ {
18
+ static const auto testing_setup = MakeNoLogFileContext<>();
19
+ }
20
+
15
21
std::string GetArgumentName (const std::string& name)
16
22
{
17
23
size_t idx = name.find (' =' );
@@ -20,9 +26,8 @@ std::string GetArgumentName(const std::string& name)
20
26
}
21
27
return name.substr (0 , idx);
22
28
}
23
- } // namespace
24
29
25
- FUZZ_TARGET (system)
30
+ FUZZ_TARGET_INIT (system, initialize_system )
26
31
{
27
32
FuzzedDataProvider fuzzed_data_provider (buffer.data (), buffer.size ());
28
33
ArgsManager args_manager{};
@@ -114,3 +119,4 @@ FUZZ_TARGET(system)
114
119
115
120
(void )HelpRequested (args_manager);
116
121
}
122
+ } // namespace
You can’t perform that action at this time.
0 commit comments