glx_arb_create_context: fix no error test and check error value
commit5f06a4de071ccd9e2916b5a3ca90c6df3e6b666c
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 12 Jul 2021 11:16:04 +0000 (12 21:16 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 12 Jul 2021 11:28:54 +0000 (12 21:28 +1000)
tree1f7652a04453889623147959f1b846602a0ea4a9
parente535c2726c5a61ff85d5b90cc682145247313af9
glx_arb_create_context: fix no error test and check error value

The first test was always skipped because we were looking for an
error value of 0 for the positive test be the value is initialised
to -1 not 0.

We add a new check to make sure the error value is what the spec
says it should be. Note this also resets the error value which
was not being done before either.

Mesa currently fails this test as the xserver doesn't validate the
errors at all.

Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/548>
tests/spec/glx_arb_create_context/no-error.c