On Mon, Mar 28, 2022 at 3:07 AM Nikolay Sivov nsivov@codeweavers.com wrote:
On 3/28/22 08:46, Mohamad Al-Jaf wrote:
Same as with previous version you sent. The function returns pointer directly, so let's test for that, instead of string comparison.
Sorry, but I really have no idea what you mean by that.
Same thing you do when testing that default string is returned.
I was getting confused by this because I thought that you have to do string comparison when testing strings in C.
Would just like to know why it's better to test the returned pointer value instead of string comparison? I'm guessing to also test if the size is the same?
-- Kind regards, Mohamad