mirror of
https://gitee.com/openharmony/third_party_vulkan-loader
synced 2024-11-27 09:21:56 +00:00
tests: Update layer path test to strip empty paths
Change-Id: Ib6f209650894e44955b82aa47a5e24f2d3640acc
This commit is contained in:
parent
4ea4716b04
commit
48ab2f8c9f
@ -45,9 +45,9 @@ RunEnvironmentVariablePathsTest()
|
||||
echo "Environment Variable Path test FAILED - Implicit layer path incorrect" >&2
|
||||
exit 1
|
||||
fi
|
||||
# Sadly, the loader does not clean up this path and just stumbles through it.
|
||||
# So just make sure it is the same.
|
||||
right_path="${vk_layer_path}"
|
||||
# The loader cleans up this path to remove the empty paths, so we need to clean up the right path, too
|
||||
right_path="${vk_layer_path//:::::/:}"
|
||||
right_path="${right_path//::::/:}"
|
||||
echo "$output" | grep -q "$right_path"
|
||||
ec=$?
|
||||
if [ $ec -eq 1 ]
|
||||
|
Loading…
Reference in New Issue
Block a user