x86/cet: fix shadow stack test scripts

Some shadow stack test scripts use the '==' operator with the 'test'
command to validate exit codes resulting in the following error:

  sysdeps/x86_64/tst-shstk-legacy-1e.sh: 31: test: 139: unexpected operator

The '==' operator is invalid for the 'test' command, use '-eq' like the
previous call to 'test'.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
This commit is contained in:
Michael Jeanson 2024-02-05 15:22:39 -05:00 committed by H.J. Lu
parent c676808a34
commit 155bb9d036
3 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ ${common_objpfx}elf/tst-shstk-legacy-1e-static
status=$?
if test $status -eq 77; then
exit 77
elif test $status == 139; then
elif test $status -eq 139; then
exit 0
else
exit 1

View File

@ -28,7 +28,7 @@ ${test_program_prefix} \
status=$?
if test $status -eq 77; then
exit 77
elif test $status == 139; then
elif test $status -eq 139; then
exit 0
else
exit 1

View File

@ -28,7 +28,7 @@ ${test_program_prefix} \
status=$?
if test $status -eq 77; then
exit 77
elif test $status == 139; then
elif test $status -eq 139; then
exit 0
else
exit 1