Tests passing
This commit is contained in:
18
connection_afl.cc
Normal file
18
connection_afl.cc
Normal file
@@ -0,0 +1,18 @@
|
||||
#include "connection.h"
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
FLAGS_logtostderr = 1;
|
||||
FLAGS_minloglevel = 3;
|
||||
google::InitGoogleLogging(argv[0]);
|
||||
gflags::ParseCommandLineFlags(&argc, &argv, true);
|
||||
|
||||
{
|
||||
firecgi::Connection conn(STDIN_FILENO, {}, [](std::unique_ptr<firecgi::Request> req) { req->End(); }, {});
|
||||
static_cast<void>(conn.Read());
|
||||
}
|
||||
|
||||
gflags::ShutDownCommandLineFlags();
|
||||
google::ShutdownGoogleLogging();
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user