-
Brian Paul authored
On Windows10 (and possibly older versions), UAC (User Account Control) intervenes when starting an executables with "patch", "update" or "setup" in their name. This requires the user to approve execution by clicking in a dialog window (and even then, causes test failures). With Cygwin, you simply get "Permission Denied". Currently, there are four Piglit tests which need this special treatment: bin/arb_compute_shader-zero-dispatch-size bin/arb_tessellation_shader-invalid-patch-vertices-range bin/glsl-uniform-update bin/mipmap-setup A work-around is to create a manifest file for each effected executable. This patch creates a <foo>.exe.manifest file if "foo" contains any of the above strings. There's no effect on non-Windows platforms. Note: this solution uses the cmake file(GENERATE ...) function. I think add_custom_command() is probably the proper approach, but I've been unsuccessful in getting that to work. Reviewed-by: Charmaine Lee <charmainel@vmware.com>
5087aa3f