Skip to content

Commit eda4ddb

Browse files
committed
openposix: Fix another three failures
This is a continuation of: commit 38cc030 Author: Cyril Hrubis <[email protected]> Date: Thu Oct 29 15:16:30 2020 +0100 openposix: Fix two test failures Where I missed three more testcases that depended on variable being changed from a different thread or signal handler. Fixes: 8c22a59 (openposix: add "static" to all global variables and functions) Signed-off-by: Cyril Hrubis <[email protected]>
1 parent 100e3fe commit eda4ddb

File tree

3 files changed

+3
-3
lines changed
  • testcases/open_posix_testsuite/conformance/interfaces

3 files changed

+3
-3
lines changed

testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/5-1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
/***************************** Test case *********************************/
7777
/******************************************************************************/
7878

79-
static char do_it = 1;
79+
static volatile char do_it = 1;
8080
static unsigned long count_ope = 0;
8181
#ifdef WITH_SYNCHRO
8282
static sem_t semsig1;

testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/18-1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
/*********************************** Test cases *****************************************/
7676
/********************************************************************************************/
7777

78-
static char do_it = 1;
78+
static volatile char do_it = 1;
7979
static unsigned long count_ope = 0;
8080
#ifdef WITH_SYNCHRO
8181
static sem_t semsig1;

testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/9-1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
/******************************************************************************/
8383
/*************************** Test case ***********************************/
8484
/******************************************************************************/
85-
static int thread_state = 0;
85+
static int volatile thread_state = 0;
8686

8787
static void *threaded(void *arg)
8888
{

0 commit comments

Comments
 (0)