tests: Check for assembly support in testgldispatch.

In testgldispatch, if it's testing generating or patching entrypoints, then
check if assembly support is enabled, and skip the test if it's not.
This commit is contained in:
Kyle Brenneman 2019-09-05 11:23:57 -06:00
parent fc2ab74c84
commit 33e1fffbca

View file

@ -135,6 +135,16 @@ int main(int argc, char **argv)
}
};
#if !defined(USE_DISPATCH_ASM)
// If the assembly dispatch stubs aren't enabled, then generating and
// patching entrypoints won't work. In that case, exit with 77 to tell
// automake to skip the test instead of failing.
if (enablePatching || enableGeneratedTest)
{
return 77;
}
#endif
__glDispatchInit();
InitDummyVendors();