x86/cet: fix shadow stack test scripts
commit155bb9d036646138348fee0ac045de601811e0c5
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 5 Feb 2024 20:22:39 +0000 (5 15:22 -0500)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 12 Feb 2024 14:49:57 +0000 (12 06:49 -0800)
tree6723d0d2832b3f82a2241aa3202d9e27970c4ae6
parentc676808a34e27fc3f7b1115c5257b382c6f00cb4
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>
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