Skip to content

Commit 0fd3cc4

Browse files
committed
openposix: Fix (hopefully) last two 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 Hopefully this is a last two, but there may be more cases where we haven't hit compiler optimization triggering the bug yet. Fixes: 8c22a59 (openposix: add "static" to all global variables and functions) Signed-off-by: Cyril Hrubis <[email protected]>
1 parent a160453 commit 0fd3cc4

File tree

2 files changed

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

2 files changed

+2
-2
lines changed

testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/8-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/sigwait/6-1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
/*************************** Test case ***********************************/
8282
/******************************************************************************/
8383

84-
static int n_awaken = 0;
84+
static volatile int n_awaken = 0;
8585
static sigset_t setusr;
8686

8787
/* Thread function */

0 commit comments

Comments
 (0)