arb_gpu_shader5: skip layout qualifier tests if extension not supported

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
framework: fix potential bug in function signatures

There is a potential for some very odd bugs because of the way python
handles mutable arguments.

Consider this:
def foo(defaults=[]):
	defaults.append('a')
	return defaults

Calling foo(['bar']) will do the expected thing:
	>>> foo(['bar'])
	['bar', 'a']

But calling foo() will not:
	>>> foo()
	['a']
	>>> foo()
	['a', 'a']

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Don't run GLX_OML_sync_control tests concurrently.

This fixes the swapbuffersmsc-return (with default swap_interval) test,
by not passing it arguments that it doesn't understand.

These tests all require a GLXWindow, so they can't be used in -fbo mode
(and they didn't understand that option anyway).

And though they need the behavior of -auto, none of them parse that
option. These tests have to deal with it in other ways, as illustrated
by commit 1d618f2abbc9f9665505b7082690eebc3bc01a72.

Finally, I think it's a bad idea to run these tests concurrently with
anything else, as interference from other clients could change the
result of attempting to sync to vertical retrace, which is a
screen-global resource.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
Signed-off-by: Theo Hill <Theo0x48@gmail.com>
Simplify piglit_glx_get_all_proc_addresses API.

I couldn't stand the number of ways this API could be misused and the
amount of code duplication it forced--two closely related issues.

This also fixes a bug: The "Failed to get function pointer" test could
never have triggered unless the caller passed incorrect arguments,
which is not the kind of error it was intended to be testing for.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
Only test non-default swap_interval if supported.

If this test is compiled on a machine that does not have headers for
GLX_MESA_swap_control, then it should skip any tests that require using
GLX_MESA_swap_control.

I tested this patch in both configurations, using "#if 0 && ..." to
check the unsupported-at-build-time case.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
Add piglit_set_timeout for tests that might hang.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
Merge branch 'jamey'

Conflicts:
	tests/all.py
Merge remote-tracking branch 'origin/jamey'