generated_tests/generate-cl-int-builtins.py in getValue, at the very end some logic checks for an instance of an int and returns it.
In the case of a long, this fails and results in a TypeError killing the build. Add a check for an instance of a long and return the number just as is done for an int. Signed-off-by: Tom Gall <[email protected]> --- generated_tests/generate-cl-int-builtins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated_tests/generate-cl-int-builtins.py b/generated_tests/generate-cl-int-builtins.py index 5b6eaf6..22b0726 100755 --- a/generated_tests/generate-cl-int-builtins.py +++ b/generated_tests/generate-cl-int-builtins.py @@ -264,7 +264,7 @@ def getValue(type, val): getValue(type, val[3]), getValue(type, val[4])) #At this point, we should have been passed a number - if (isinstance(val, int)): + if ((isinstance(val, int)) or (isinstance(val, long))): return val; print('Invalid value '+val+' encountered in getValue\n') -- 1.8.1.2 _______________________________________________ Piglit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/piglit
