mutter/cogl/tests/conform
Simon McVittie a3cc62c285 cogl tests: Force defined behaviour for 24-bit left-shifts
When r is 128 or more, running tests compiled with the undefined behaviour
sanitizer (ubsan) reports:

test-utils.c:312:45: runtime error: left shift of 128 by 24 places cannot be represented in type 'int'

which indeed it cannot. Force the type to be unsigned 32-bit so that we
get defined behaviour.

Similarly, in test-atlas-migration, the left-shifted guint8 is promoted
to int, which again does not have enough non-sign bits available to
left-shift a value >= 128 by 24 bits. Again, force the shift to be done
in unsigned 32-bit space.

This was originally cogl!22, but applies equally to mutter's fork of cogl.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1271

Signed-off-by: Simon McVittie <smcv@debian.org>
2020-05-27 21:26:49 +00:00
..
meson cogl/tests: Export and run unit tests if they are enabled 2019-05-02 19:56:23 +00:00
meson.build cogl: Remove CoglPath and the tesselator 2020-04-08 11:38:48 +02:00
mutter-cogl.test.in Add Meson support for installed tests 2018-12-20 13:52:35 -02:00
test-alpha-test.c cogl: Add missing function declarations 2019-01-22 18:31:52 +01:00
test-alpha-textures.c cogl: Add missing function declarations 2019-01-22 18:31:52 +01:00
test-atlas-migration.c cogl tests: Force defined behaviour for 24-bit left-shifts 2020-05-27 21:26:49 +00:00
test-backface-culling.c cogl/tests/backface-culling: Port to non-deprecated API 2019-12-03 19:02:14 +00:00
test-blend-strings.c cogl/tests: Port away from legacy implicit stack based API 2019-12-03 19:02:14 +00:00
test-blend.c cogl: Add missing function declarations 2019-01-22 18:31:52 +01:00
test-color-hsl.c cogl: Add missing function declarations 2019-01-22 18:31:52 +01:00
test-conform-main.c cogl test-premult: Don't free texture data until CoglBitmap is freed 2020-05-27 15:50:36 +01:00
test-copy-replace-texture.c cogl: Add missing function declarations 2019-01-22 18:31:52 +01:00
test-custom-attributes.c cogl: Add missing function declarations 2019-01-22 18:31:52 +01:00
test-declarations.h Remove CoglQuaternion 2019-10-16 11:38:13 +00:00
test-depth-test.c cogl/tests: Port away from legacy implicit stack based API 2019-12-03 19:02:14 +00:00
test-euler.c Remove CoglQuaternion 2019-10-16 11:38:13 +00:00
test-fence.c cogl: Add missing function declarations 2019-01-22 18:31:52 +01:00
test-fixtures.c move everything into a cogl/ directory 2016-04-22 16:44:31 +02:00
test-framebuffer-get-bits.c cogl: Add missing function declarations 2019-01-22 18:31:52 +01:00
test-just-vertex-shader.c cogl: Remove no-op cogl_shader_compile and cogl_shader_get_info_log 2020-02-12 21:55:44 +00:00
test-layer-remove.c cogl: Add missing function declarations 2019-01-22 18:31:52 +01:00
test-map-buffer-range.c cogl: Add missing function declarations 2019-01-22 18:31:52 +01:00
test-multitexture.c clutter: Introduce paint contexts 2019-12-03 19:02:14 +00:00
test-no-gl-header.c move everything into a cogl/ directory 2016-04-22 16:44:31 +02:00
test-npot-texture.c cogl: NPOT textures are always available 2019-04-18 12:53:07 -04:00
test-object.c cogl: Remove CoglPath and the tesselator 2020-04-08 11:38:48 +02:00
test-offscreen.c cogl/tests: Port away from legacy implicit stack based API 2019-12-03 19:02:14 +00:00
test-pipeline-cache-unrefs-texture.c cogl: Add missing function declarations 2019-01-22 18:31:52 +01:00
test-pipeline-shader-state.c cogl: Add missing function declarations 2019-01-22 18:31:52 +01:00
test-pipeline-uniforms.c cogl: Remove cogl_handle_ref/unref 2019-10-14 17:05:28 +00:00
test-pipeline-user-matrix.c cogl: Remove CoglError wrapper 2019-06-20 18:25:04 +02:00
test-pixel-buffer.c cogl: Add missing function declarations 2019-01-22 18:31:52 +01:00
test-point-size-attribute.c cogl: Remove CoglBool, use gboolean instead 2019-02-15 16:35:46 +01:00
test-point-size.c cogl: Remove CoglBool, use gboolean instead 2019-02-15 16:35:46 +01:00
test-point-sprite.c cogl: Remove CoglError wrapper 2019-06-20 18:25:04 +02:00
test-premult.c cogl test-premult: Don't free texture data until CoglBitmap is freed 2020-05-27 15:50:36 +01:00
test-primitive-and-journal.c cogl: Add missing function declarations 2019-01-22 18:31:52 +01:00
test-primitive.c cogl: Remove CoglBool, use gboolean instead 2019-02-15 16:35:46 +01:00
test-read-texture-formats.c cogl: Add missing function declarations 2019-01-22 18:31:52 +01:00
test-readpixels.c clutter: Introduce paint contexts 2019-12-03 19:02:14 +00:00
test-snippets.c cogl: Add missing function declarations 2019-01-22 18:31:52 +01:00
test-sparse-pipeline.c cogl: Add missing function declarations 2019-01-22 18:31:52 +01:00
test-sub-texture.c cogl: Add missing function declarations 2019-01-22 18:31:52 +01:00
test-texture-get-set-data.c cogl: Add missing function declarations 2019-01-22 18:31:52 +01:00
test-texture-mipmaps.c clutter: Introduce paint contexts 2019-12-03 19:02:14 +00:00
test-texture-no-allocate.c cogl: Remove CoglError wrapper 2019-06-20 18:25:04 +02:00
test-texture-pixmap-x11.c clutter: Introduce paint contexts 2019-12-03 19:02:14 +00:00
test-texture-rg.c cogl: Add missing function declarations 2019-01-22 18:31:52 +01:00
test-version.c cogl: Add missing function declarations 2019-01-22 18:31:52 +01:00
test-viewport.c clutter: Introduce paint contexts 2019-12-03 19:02:14 +00:00
test-wrap-modes.c cogl/tests: Port away from legacy implicit stack based API 2019-12-03 19:02:14 +00:00
test-write-texture-formats.c cogl: Add missing function declarations 2019-01-22 18:31:52 +01:00