mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 01:08:27 +00:00
added return value to set_base_dir.
This commit is contained in:
parent
eef74af19b
commit
20fa4ba3b4
2 changed files with 35 additions and 26 deletions
|
@ -267,6 +267,12 @@ TEST_F(ServerTest, GetMethodDirTest)
|
|||
EXPECT_EQ("test.html", res->body);
|
||||
}
|
||||
|
||||
TEST_F(ServerTest, InvalidBaseDir)
|
||||
{
|
||||
EXPECT_EQ(false, svr_.set_base_dir("invalid_dir"));
|
||||
EXPECT_EQ(true, svr_.set_base_dir("./"));
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
TEST(CleanupTest, WSACleanup)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue