mirror of
https://github.com/yawut/SDL.git
synced 2026-09-26 18:26:39 -05:00
Fixed global suite declaration segfault via external linkage declaration
This commit is contained in:
@@ -27,15 +27,21 @@
|
||||
|
||||
#include "SDL_test.h"
|
||||
|
||||
TestCaseReference *references[] = {
|
||||
{"hello", "description", 1, 0},
|
||||
{"hello2", "description", 1, 0},
|
||||
NULL
|
||||
/* Test cases */
|
||||
static const TestCaseReference test1 =
|
||||
(TestCaseReference){ "hello", "description", 1, 0 };
|
||||
|
||||
static const TestCaseReference test2 =
|
||||
(TestCaseReference){ "hello2", "description", 1, 0 };
|
||||
|
||||
/* Test suite */
|
||||
extern const TestCaseReference *testSuite[] = {
|
||||
&test1, &test2, NULL
|
||||
};
|
||||
|
||||
|
||||
TestCaseReference **QueryTestCaseReferences() {
|
||||
return references;
|
||||
return (TestCaseReference **)testSuite;
|
||||
}
|
||||
|
||||
void hello(void *arg){
|
||||
|
||||
Reference in New Issue
Block a user