Skip to content

Commit e1f781a

Browse files
authored
[oss-fuzz] Enable msan for fuzz tests (yhirose#734)
* Disable openssl as we're not using it in fuzz tests * Increase timeout in ClientStop test
1 parent 72b81ba commit e1f781a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/fuzzing/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ all : server_fuzzer
1919

2020
# Fuzz target, so that you can choose which $(LIB_FUZZING_ENGINE) to use.
2121
server_fuzzer : server_fuzzer.cc ../../httplib.h
22-
$(CXX) $(CXXFLAGS) -o $@ $< -Wl,-Bstatic $(OPENSSL_SUPPORT) -Wl,-Bdynamic -ldl $(ZLIB_SUPPORT) $(LIB_FUZZING_ENGINE) -pthread
22+
# $(CXX) $(CXXFLAGS) -o $@ $< -Wl,-Bstatic $(OPENSSL_SUPPORT) -Wl,-Bdynamic -ldl $(ZLIB_SUPPORT) $(LIB_FUZZING_ENGINE) -pthread
23+
$(CXX) $(CXXFLAGS) -o $@ $< $(ZLIB_SUPPORT) $(LIB_FUZZING_ENGINE) -pthread
2324
zip -q -r server_fuzzer_seed_corpus.zip corpus
2425

2526
clean:

test/test.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1974,8 +1974,7 @@ TEST_F(ServerTest, ClientStop) {
19741974
}));
19751975
}
19761976

1977-
std::this_thread::sleep_for(std::chrono::seconds(1));
1978-
1977+
std::this_thread::sleep_for(std::chrono::seconds(2));
19791978
while (cli_.is_socket_open()) {
19801979
cli_.stop();
19811980
std::this_thread::sleep_for(std::chrono::milliseconds(10));

0 commit comments

Comments
 (0)