mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 12:30:06 +00:00
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:
parent
c676808a34
commit
155bb9d036
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user