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:
parent
fc2ab74c84
commit
33e1fffbca
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue