rice-eclipse / resfet

Hybrid rocket engine control software for engine tests (coldflow and hotfire), written in C++.
http://eclipse.rice.edu/resfet
GNU General Public License v3.0
1 stars 1 forks source link

Config testing #27

Closed ty19 closed 4 years ago

ty19 commented 4 years ago

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.