On Sat Apr 20 12:47:13 2024 +0000, Elizabeth Figura wrote:
Ouch, I can't believe we were using profile APIs for this. Any chance we can get a test for this as well?
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.