test/testerror.c
changeset 5969 3a041d215edc
parent 5535 96594ac5fd1a
child 7517 965d57022c01
equal deleted inserted replaced
5968:b229328c7ad4 5969:3a041d215edc
    56 
    56 
    57     /* Set the error value for the main thread */
    57     /* Set the error value for the main thread */
    58     SDL_SetError("No worries");
    58     SDL_SetError("No worries");
    59 
    59 
    60     alive = 1;
    60     alive = 1;
    61     thread = SDL_CreateThread(ThreadFunc, "#1");
    61     thread = SDL_CreateThread(ThreadFunc, NULL, "#1");
    62     if (thread == NULL) {
    62     if (thread == NULL) {
    63         fprintf(stderr, "Couldn't create thread: %s\n", SDL_GetError());
    63         fprintf(stderr, "Couldn't create thread: %s\n", SDL_GetError());
    64         quit(1);
    64         quit(1);
    65     }
    65     }
    66     SDL_Delay(5 * 1000);
    66     SDL_Delay(5 * 1000);