Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong pointer usage & Fix tests not using SYSCONFDIR #1245

Merged
merged 4 commits into from
Jul 18, 2023

Conversation

charles-lunarg
Copy link
Collaborator

@charles-lunarg charles-lunarg commented Jul 4, 2023

get_override_layer_override_paths logs the path used, but during the refactor it
failed to dereference the double pointer properly, leading to the loader_log
message reading garbage. This was not caught on x64 address sanitizer builds, but
was on the 32 bit build.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build queued with queue ID 595.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 2066 running.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 2066 failed.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build queued with queue ID 8639.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 2071 running.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 2071 failed.

The ImplicitLayers.DuplicateLayers test requires there to be two separate
files on the file system, located in different paths. To accomplish that, the
test writes a file to /etc and another to the default location. By default,
that is typically /usr/local/share. If the project is configured to set /etc
as that default location, only one file will be written.

The fix is to move the duplicate file from /etc to the default home directory,
since that is configured from inside the tests itself. This does change the
order the layers are found in, so the logic of the test had to be flipped.
get_override_layer_override_paths logs the path used, but during the refactor it
failed to dereference the double pointer properly, leading to the loader_log
message reading garbage. This was not caught on x64 address sanitizer builds, but
was on the 32 bit build.
Ensures that this build setting is exercised.
@ci-tester-lunarg
Copy link

CI Vulkan-Loader build queued with queue ID 8693.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 2072 running.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 2072 passed.

@charles-lunarg charles-lunarg merged commit fdae336 into KhronosGroup:main Jul 18, 2023
37 checks passed
@charles-lunarg charles-lunarg deleted the fix_pointer_usage branch July 18, 2023 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants