1#!/bin/bash 2# SPDX-License-Identifier: GPL-2.0+ 3 4# Prevent GLIBC from registering RSEQ so the selftest can run in legacy 5# and performance optimized mode. 6GLIBC_TUNABLES="${GLIBC_TUNABLES:-}:glibc.pthread.rseq=0" 7export GLIBC_TUNABLES 8 9./check_optimized || { 10 echo "Skipping optimized RSEQ mode test. Not supported"; 11 exit 0 12} 13 14./slice_test 15