Skip to content

Commit

Permalink
tests/membarrier: add additional return value
Browse files Browse the repository at this point in the history
linux commit 809232619f5b ("sched/membarrier: Fix membarrier-rseq fence
command missing from query bitmask") changed the returned value, so we
need to adjust the strace test as well.

Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
  • Loading branch information
svens-s390 authored and ldv-alt committed Feb 1, 2022
1 parent 8852bfb commit dadd6b4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/membarrier.c
Expand Up @@ -72,6 +72,14 @@ main(void)
"MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ";
break;

case 2|4|8|16|128|256:
text = "MEMBARRIER_CMD_GLOBAL_EXPEDITED|"
"MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED|"
"MEMBARRIER_CMD_PRIVATE_EXPEDITED|"
"MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED|"
"MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ|"
"MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ";
break;
default:
error_msg_and_fail("membarrier returned %#x, does"
" the test have to be updated?", rc);
Expand Down

0 comments on commit dadd6b4

Please sign in to comment.