[PATCH v2 2/2] propsys/tests: Add VariantToStringWithDefault tests.

Mohamad Al-Jaf mohamadaljaf at gmail.com
Mon Mar 28 14:39:01 CDT 2022


On Mon, Mar 28, 2022 at 3:07 AM Nikolay Sivov <nsivov at 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



More information about the wine-devel mailing list