[Piglit] [PATCH] array-texture: fail if any of the subtests fail rather than the last

Brian Paul brianp at vmware.com
Mon Jan 13 16:12:34 PST 2014


Reviewed-by: Brian Paul <brianp at vmware.com>


On 01/13/2014 02:34 PM, Ilia Mirkin wrote:
> ping^2?
>
> On Fri, Dec 20, 2013 at 3:04 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
>> ping?
>>
>> On Sun, Dec 8, 2013 at 2:48 AM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
>>> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
>>> ---
>>>   tests/texturing/array-texture.c | 12 ++++++++----
>>>   1 file changed, 8 insertions(+), 4 deletions(-)
>>>
>>> diff --git a/tests/texturing/array-texture.c b/tests/texturing/array-texture.c
>>> index 9837473..a65d919 100644
>>> --- a/tests/texturing/array-texture.c
>>> +++ b/tests/texturing/array-texture.c
>>> @@ -176,7 +176,7 @@ make_1d_array_texture(void)
>>>   static GLboolean
>>>   test_2d_array_texture(GLuint tex)
>>>   {
>>> -   GLboolean pass;
>>> +   GLboolean pass, ret = GL_TRUE;
>>>      int i;
>>>      float width = piglit_width / NUM_COLORS;
>>>      float x = 0.0;
>>> @@ -200,18 +200,20 @@ test_2d_array_texture(GLuint tex)
>>>         if (!pass) {
>>>            printf("%s: failed for 2D image/slice %d\n", prog, i);
>>>         }
>>> +
>>> +      ret &= pass;
>>>      }
>>>
>>>      glBindTexture(GL_TEXTURE_2D_ARRAY_EXT, 0);
>>>
>>> -   return pass;
>>> +   return ret;
>>>   }
>>>
>>>
>>>   static GLboolean
>>>   test_1d_array_texture(GLuint tex)
>>>   {
>>> -   GLboolean pass;
>>> +   GLboolean pass, ret = GL_TRUE;
>>>      int i;
>>>      float width = piglit_width / NUM_COLORS;
>>>      float x = 0.0;
>>> @@ -239,11 +241,13 @@ test_1d_array_texture(GLuint tex)
>>>         if (!pass) {
>>>            printf("%s: failed for 1D image/slice %d\n", prog, i);
>>>         }
>>> +
>>> +      ret &= pass;
>>>      }
>>>
>>>      glBindTexture(GL_TEXTURE_1D_ARRAY_EXT, 0);
>>>
>>> -   return pass;
>>> +   return ret;
>>>   }
>>>
>>>
>>> --
>>> 1.8.3.2
>>>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> https://urldefense.proofpoint.com/v1/url?u=http://lists.freedesktop.org/mailman/listinfo/piglit&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=lGQMzzTgII0I7jefp2FHq7WtZ%2BTLs8wadB%2BiIj9xpBY%3D%0A&m=voh2W%2B5FJRaXk%2BGbe20FpmtU6B4uiQ9uskOciRqm8Yc%3D%0A&s=75c845a224dfcae8b5e39c0effbb67b1a83896ef90dfecedd5f129c939618b2a
>



More information about the Piglit mailing list