Fix config file parsing

This commit is contained in:
Ilya Taranov 2023-03-10 20:23:55 -08:00
parent 10a9969a64
commit d04e04e89a
2 changed files with 8 additions and 2 deletions

View file

@ -86,6 +86,9 @@ test_config_branches()
TEST_CHECK(b->minfreespace() == 1234);
TEST_CHECK(b.to_string() == "");
// Parse initial value for branch
TEST_CHECK(b.from_string(b.to_string()) == 0);
bcp0 = b;
TEST_CHECK(b.from_string("/foo/bar") == 0);
TEST_CHECK(b.to_string() == "/foo/bar=RW");