mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-30 15:53:22 -05:00
selftests/x86: Add validity check and allow field splitting
[ Upstream commit b06e15ebd5bfb670f93c7f11a29b8299c1178bc6 ]
Add check to test if CC has a string. CC can have multiple sub-strings
like "ccache gcc". Erorr pops up if it is treated as single string and
double quotes are used around it. This can be fixed by removing the
quotes and not treating CC as a single string.
Fixes: e9886ace22 ("selftests, x86: Rework x86 target architecture detection")
Reported-by: "kernelci.org bot" <[email protected]>
Signed-off-by: Muhammad Usama Anjum <[email protected]>
Signed-off-by: Dave Hansen <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Sasha Levin <[email protected]>
This commit is contained in:
parent
f8a3de8d7c
commit
152ebc0ee9
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ CC="$1"
|
|||
TESTPROG="$2"
|
||||
shift 2
|
||||
|
||||
if "$CC" -o /dev/null "$TESTPROG" -O0 "$@" 2>/dev/null; then
|
||||
if [ -n "$CC" ] && $CC -o /dev/null "$TESTPROG" -O0 "$@" 2>/dev/null; then
|
||||
echo 1
|
||||
else
|
||||
echo 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue