The current tests fail because the readFrom command returns 1 when reading from config_test.ini, but a 0 is expected on a corect call. config_test.ini should be modified so it is a valid config file, and the tests should not read any config mappings after readFrom fails. Also, the test that reads the key "foo" results in a segfault for an unknown reason.
Some new tests to add are ones that test good/bad config files, and that the config parser clears any partially read mappings after it encounters a bad key-value in a config file.
The current tests fail because the readFrom command returns 1 when reading from config_test.ini, but a 0 is expected on a corect call. config_test.ini should be modified so it is a valid config file, and the tests should not read any config mappings after readFrom fails. Also, the test that reads the key "foo" results in a segfault for an unknown reason.
Some new tests to add are ones that test good/bad config files, and that the config parser clears any partially read mappings after it encounters a bad key-value in a config file.