egl: make sure entrypoints list is always sorted
Starting with the next commit, badly sorting this list will break the eglGetProcAddress(). Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
557f3181bf
commit
d25dea0c68
|
@ -126,7 +126,8 @@ egl_HEADERS = \
|
|||
$(top_srcdir)/include/EGL/eglmesaext.h \
|
||||
$(top_srcdir)/include/EGL/eglplatform.h
|
||||
|
||||
TESTS = egl-symbols-check
|
||||
TESTS = egl-symbols-check \
|
||||
egl-entrypoint-check
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(TESTS) \
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
entrypoints=$(grep EGL_ENTRYPOINT "$srcdir"/main/eglentrypoint.h)
|
||||
sorted=$(sort <<< "$entrypoints")
|
||||
test "$entrypoints" = "$sorted"
|
Loading…
Reference in New Issue