On 2/10/23 13:13, Eric Pouech wrote:
I'm not sure to get your point.
- do you mean that you'd like to ok() test the return values of all the
calls in the helper? I didn't do it as a) the helper can be called with an inexistant file, b) the cases of failure are ok() tested later on (machine not being unknown)
- do you mean the calls in the helper can't fail? (I don't see a reason
they wouldn't)
- something else?
If a call in a test shouldn't fail, we should use ok(). Creating the file might fail if it doesn't exist, but I don't see any reason that CreateFileMapping() or MapViewOfFile() would fail. I.e. there was nothing wrong with the original code here, right?