Add a little more testing of our public GLX API.

macos/v1.5.9
Eric Anholt 11 years ago
parent 42fd4b607a
commit 106298f2f9
  1. 20
      test/glx_public_api.c

@ -88,6 +88,25 @@ test_glx_version(void)
return true; return true;
} }
static bool
test_glx_extension_supported(void)
{
if (!epoxy_has_glx_extension("GLX_ARB_get_proc_address")) {
fprintf(stderr,
"Incorrectly reported no support for GLX_ARB_get_proc_address "
"(should always be present in Linux ABI)\n");
return false;
}
if (epoxy_has_glx_extension("GLX_EXT_ham_sandwich")) {
fprintf(stderr,
"Incorrectly reported support for GLX_EXT_ham_sandwich\n");
return false;
}
return true;
}
int int
main(int argc, char **argv) main(int argc, char **argv)
{ {
@ -98,6 +117,7 @@ main(int argc, char **argv)
pass = test_gl_version() && pass; pass = test_gl_version() && pass;
pass = test_glx_version() && pass; pass = test_glx_version() && pass;
pass = test_glx_extension_supported() && pass;
return pass != true; return pass != true;
} }

Loading…
Cancel
Save