[PATCH 7/8] windowscodecs/tests: Add CopyPixels data tests for uncompressed images.
25 Aug
2020
25 Aug
'20
2:01 p.m.
Signed-off-by: Ziqing Hui <zhui(a)codeweavers.com> --- dlls/windowscodecs/tests/ddsformat.c | 34 ++++++++++++++++++---------- 1 file changed, 22 insertions(+), 12 deletions(-)
25 Aug
25 Aug
4:22 p.m.
+ } else { + ok(!strncmp((const char *)pixels, (const char *)buffer, frame_size), + "Test %u, frame %u: Pixels mismatch\n", i, frame_index); + }; It's a little strange to use strncmp for pixel data. This will break if the data contains a 0 byte. I think you want memcmp.
1941
Age (days ago)
1941
Last active (days ago)
1 comments
2 participants
participants (2)
-
Esme Povirk (they/them) -
Ziqing Hui