]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86/cet: fix shadow stack test scripts
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 5 Feb 2024 20:22:39 +0000 (15:22 -0500)
committerSam James <sam@gentoo.org>
Sun, 9 Jun 2024 14:59:49 +0000 (15:59 +0100)
commit00899eba260ff3edb62bc6f45c1860bc64fd59e0
treeaae6f9fd2adc40813a666e5ab86a4495383817a1
parent6ade91c21140d8c803c289932dbfc74537f65a1f
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)
sysdeps/x86_64/tst-shstk-legacy-1e-static.sh
sysdeps/x86_64/tst-shstk-legacy-1e.sh
sysdeps/x86_64/tst-shstk-legacy-1g.sh