diff options
author | Michael Jeanson <mjeanson@efficios.com> | 2024-02-05 15:22:39 -0500 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-06-09 15:59:49 +0100 |
commit | 00899eba260ff3edb62bc6f45c1860bc64fd59e0 (patch) | |
tree | aae6f9fd2adc40813a666e5ab86a4495383817a1 | |
parent | 6ade91c21140d8c803c289932dbfc74537f65a1f (diff) | |
download | glibc-00899eba260ff3edb62bc6f45c1860bc64fd59e0.zip glibc-00899eba260ff3edb62bc6f45c1860bc64fd59e0.tar.gz glibc-00899eba260ff3edb62bc6f45c1860bc64fd59e0.tar.bz2 |
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>
(cherry picked from commit 155bb9d036646138348fee0ac045de601811e0c5)
-rwxr-xr-x | sysdeps/x86_64/tst-shstk-legacy-1e-static.sh | 2 | ||||
-rwxr-xr-x | sysdeps/x86_64/tst-shstk-legacy-1e.sh | 2 | ||||
-rwxr-xr-x | sysdeps/x86_64/tst-shstk-legacy-1g.sh | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/x86_64/tst-shstk-legacy-1e-static.sh b/sysdeps/x86_64/tst-shstk-legacy-1e-static.sh index 46f1233..0a9a164 100755 --- a/sysdeps/x86_64/tst-shstk-legacy-1e-static.sh +++ b/sysdeps/x86_64/tst-shstk-legacy-1e-static.sh @@ -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 diff --git a/sysdeps/x86_64/tst-shstk-legacy-1e.sh b/sysdeps/x86_64/tst-shstk-legacy-1e.sh index 3121245..3dec562 100755 --- a/sysdeps/x86_64/tst-shstk-legacy-1e.sh +++ b/sysdeps/x86_64/tst-shstk-legacy-1e.sh @@ -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 diff --git a/sysdeps/x86_64/tst-shstk-legacy-1g.sh b/sysdeps/x86_64/tst-shstk-legacy-1g.sh index e840870..249831e 100755 --- a/sysdeps/x86_64/tst-shstk-legacy-1g.sh +++ b/sysdeps/x86_64/tst-shstk-legacy-1g.sh @@ -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 |