On Sat Apr 20 12:47:13 2024 +0000, Tuomas Räsänen wrote:
Sure! There was an existing test case for reading INF class, so I just added couple of tests to the end. Interestingly, the test code used profile API to write to the INF file, so I just decided to go with the flow and used `WritePrivateProfileStringA()` too. So, now there are tests, which use profile API to write to an INF file, to ensure the code it is testing does **not** use profile API to read from an INF file. How ironic! But I think that's fine, given that all we need from testing point of view is the ability to write variable definitions to sections.
Yeah, it's not ideal that the tests are using profile APIs either, but I don't think we really care about that.