We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3925 - testautomation surface_testCompleteSurfaceConversion failure
Summary: testautomation surface_testCompleteSurfaceConversion failure
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.6
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-28 10:08 UTC by Juha Niemimäki
Modified: 2017-10-28 19:04 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juha Niemimäki 2017-10-28 10:08:00 UTC
surface_testCompleteSurfaceConversion test seems to fail on both Linux Mint (x86_64) and AmigaOS 4 (PowerPC). Tested here the latest version repository:

INFO: Linked version: 2.0.7.11658 (hg-11658:fbfdee28682d)

./testautomation --filter surface_testCompleteSurfaceConversion

INFO:  10/28/17 13:03:14: ----- Test Case 14.6: 'surface_testCompleteSurfaceConversion' started
INFO:  10/28/17 13:03:14: Test Description: 'Tests surface conversion across all pixel formats'
INFO:  10/28/17 13:03:14: Test Iteration 1: execKey 4328591082807434845
INFO:  10/28/17 13:03:14: Assert 'Check that testSurface is not NULL': Passed
INFO:  10/28/17 13:03:14: Assert 'Validate result from SDL_SetSurfaceBlendMode, expected: 0, got: 0': Passed
INFO:  10/28/17 13:03:14: Assert 'Validate result from SDL_GetSurfaceBlendMode, expected: 0, got: 0': Passed
INFO:  10/28/17 13:03:14: Assert 'Validate blendMode, expected: 0, got: 0': Passed
INFO:  10/28/17 13:03:14: Assert 'Verify face surface is not NULL': Passed
INFO:  10/28/17 13:03:14: Assert 'Validate result from SDLTest_CompareSurfaces, expected: 0, got: 0': Passed
INFO:  10/28/17 13:03:14: Assert 'Validate result from SDLTest_CompareSurfaces, expected: 0, got: 0': Passed
INFO:  10/28/17 13:03:14: Assert 'Validate result from SDLTest_CompareSurfaces, expected: 0, got: 0': Passed
INFO:  10/28/17 13:03:14: Assert 'Validate result from SDLTest_CompareSurfaces, expected: 0, got: 0': Passed
ERROR: 10/28/17 13:03:14: Comparison of pixels with allowable error of 0 failed 906 times.
ERROR: 10/28/17 13:03:14: First detected occurrence at position 0,0 with a squared RGB-difference of 195075.
ERROR: 10/28/17 13:03:14: Surfaces from failed comparison saved as 'CompareSurfaces0005_TestOutput.bmp' and 'CompareSurfaces0005_Reference.bmp'
ERROR: 10/28/17 13:03:14: Assert 'Validate result from SDLTest_CompareSurfaces, expected: 0, got: 906': Failed
INFO:  10/28/17 13:03:14: Assert 'Validate result from SDLTest_CompareSurfaces, expected: 0, got: 0': Passed
INFO:  10/28/17 13:03:14: Assert 'Validate result from SDLTest_CompareSurfaces, expected: 0, got: 0': Passed
INFO:  10/28/17 13:03:14: Assert 'Validate result from SDLTest_CompareSurfaces, expected: 0, got: 0': Passed
INFO:  10/28/17 13:03:14: Assert 'Validate result from SDLTest_CompareSurfaces, expected: 0, got: 0': Passed
ERROR: 10/28/17 13:03:14: Comparison of pixels with allowable error of 0 failed 906 times.
ERROR: 10/28/17 13:03:14: First detected occurrence at position 0,0 with a squared RGB-difference of 195075.
ERROR: 10/28/17 13:03:14: Surfaces from failed comparison saved as 'CompareSurfaces0010_TestOutput.bmp' and 'CompareSurfaces0010_Reference.bmp'
ERROR: 10/28/17 13:03:14: Assert 'Validate result from SDLTest_CompareSurfaces, expected: 0, got: 906': Failed
INFO:  10/28/17 13:03:14: Assert 'Validate result from SDLTest_CompareSurfaces, expected: 0, got: 0': Passed
INFO:  10/28/17 13:03:14: Assert 'Validate result from SDLTest_CompareSurfaces, expected: 0, got: 0': Passed
INFO:  10/28/17 13:03:14: Assert 'Validate result from SDLTest_CompareSurfaces, expected: 0, got: 0': Passed
INFO:  10/28/17 13:03:14: Assert 'Validate result from SDLTest_CompareSurfaces, expected: 0, got: 0': Passed
ERROR: 10/28/17 13:03:14: Comparison of pixels with allowable error of 0 failed 906 times.
ERROR: 10/28/17 13:03:14: First detected occurrence at position 0,0 with a squared RGB-difference of 195075.
ERROR: 10/28/17 13:03:14: Surfaces from failed comparison saved as 'CompareSurfaces0015_TestOutput.bmp' and 'CompareSurfaces0015_Reference.bmp'
ERROR: 10/28/17 13:03:14: Assert 'Validate result from SDLTest_CompareSurfaces, expected: 0, got: 906': Failed
INFO:  10/28/17 13:03:14: Assert 'Validate result from SDLTest_CompareSurfaces, expected: 0, got: 0': Passed
INFO:  10/28/17 13:03:14: Assert 'Validate result from SDLTest_CompareSurfaces, expected: 0, got: 0': Passed
INFO:  10/28/17 13:03:14: Assert 'Validate result from SDLTest_CompareSurfaces, expected: 0, got: 0': Passed
INFO:  10/28/17 13:03:14: Assert 'Validate result from SDLTest_CompareSurfaces, expected: 0, got: 0': Passed
ERROR: 10/28/17 13:03:14: Comparison of pixels with allowable error of 0 failed 906 times.
ERROR: 10/28/17 13:03:14: First detected occurrence at position 0,0 with a squared RGB-difference of 195075.
ERROR: 10/28/17 13:03:14: Surfaces from failed comparison saved as 'CompareSurfaces0020_TestOutput.bmp' and 'CompareSurfaces0020_Reference.bmp'
ERROR: 10/28/17 13:03:14: Assert 'Validate result from SDLTest_CompareSurfaces, expected: 0, got: 906': Failed
ERROR: 10/28/17 13:03:14: Comparison of pixels with allowable error of 0 failed 906 times.
ERROR: 10/28/17 13:03:14: First detected occurrence at position 0,0 with a squared RGB-difference of 195075.
ERROR: 10/28/17 13:03:14: Surfaces from failed comparison saved as 'CompareSurfaces0021_TestOutput.bmp' and 'CompareSurfaces0021_Reference.bmp'
ERROR: 10/28/17 13:03:14: Assert 'Validate result from SDLTest_CompareSurfaces, expected: 0, got: 906': Failed
ERROR: 10/28/17 13:03:14: Comparison of pixels with allowable error of 0 failed 906 times.
ERROR: 10/28/17 13:03:14: First detected occurrence at position 0,0 with a squared RGB-difference of 195075.
ERROR: 10/28/17 13:03:14: Surfaces from failed comparison saved as 'CompareSurfaces0022_TestOutput.bmp' and 'CompareSurfaces0022_Reference.bmp'
ERROR: 10/28/17 13:03:14: Assert 'Validate result from SDLTest_CompareSurfaces, expected: 0, got: 906': Failed
ERROR: 10/28/17 13:03:14: Comparison of pixels with allowable error of 0 failed 906 times.
ERROR: 10/28/17 13:03:14: First detected occurrence at position 0,0 with a squared RGB-difference of 195075.
ERROR: 10/28/17 13:03:14: Surfaces from failed comparison saved as 'CompareSurfaces0023_TestOutput.bmp' and 'CompareSurfaces0023_Reference.bmp'
ERROR: 10/28/17 13:03:14: Assert 'Validate result from SDLTest_CompareSurfaces, expected: 0, got: 906': Failed
ERROR: 10/28/17 13:03:14: Comparison of pixels with allowable error of 0 failed 906 times.
ERROR: 10/28/17 13:03:14: First detected occurrence at position 0,0 with a squared RGB-difference of 195075.
ERROR: 10/28/17 13:03:14: Surfaces from failed comparison saved as 'CompareSurfaces0024_TestOutput.bmp' and 'CompareSurfaces0024_Reference.bmp'
ERROR: 10/28/17 13:03:14: Assert 'Validate result from SDLTest_CompareSurfaces, expected: 0, got: 906': Failed
ERROR: 10/28/17 13:03:14: Comparison of pixels with allowable error of 0 failed 906 times.
ERROR: 10/28/17 13:03:14: First detected occurrence at position 0,0 with a squared RGB-difference of 195075.
ERROR: 10/28/17 13:03:14: Surfaces from failed comparison saved as 'CompareSurfaces0025_TestOutput.bmp' and 'CompareSurfaces0025_Reference.bmp'
ERROR: 10/28/17 13:03:14: Assert 'Validate result from SDLTest_CompareSurfaces, expected: 0, got: 906': Failed
ERROR: 10/28/17 13:03:14: Assert Summary: Total=30 Passed=21 Failed=9
INFO:  10/28/17 13:03:14: Total Test runtime: 0.0 sec
ERROR: 10/28/17 13:03:14: >>> Test 'surface_testCompleteSurfaceConversion': Failed
Comment 1 Sylvain 2017-10-28 19:04:57 UTC
It seems to be because of format ARGB2101010


see bug 3367 - RGBA_FROM_PIXEL macro can't handle SDL_PIXELFORMAT_ARGB2101010
https://hg.libsdl.org/SDL/rev/7f429e943ed3