Skip to content

[SYCL][Test] Fix mock calls in render-group test #19685

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

Open
wants to merge 1 commit into
base: sycl
Choose a base branch
from

Conversation

againull
Copy link
Contributor

@againull againull commented Aug 1, 2025

Enhance the mock library used in the render-group SYCL test to support both standard and large file variants (glob, glob64, open, open64, globfree, globfree64).
When large file support is enabled in the build, the mock library now correctly provides the required "*64" symbols. Additionally, if files are not /dev/dri/renderD* then fallback to the real library functions, preserving rest of the sycl-ls functionality.
This improves reliability across different build configurations.

Enhance the mock library used in the render-group SYCL test
to support both standard and large file variants (glob, glob64,
open, open64, globfree, globfree64).
When large file support is enabled in the build, the mock
library now correctly provides the required *64 symbols.
Additionally, if files are not /dev/dri/renderD* then fallback
to the real library functions, preserving rest of the sycl-ls
functionality.
This improves reliability across different build configurations.
@againull againull requested a review from a team as a code owner August 1, 2025 19:18
pglob->gl_pathc = 0;
pglob->gl_pathv = NULL;
return 0;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we apply

Additionally, if files are not /dev/dri/renderD* then fallback to the real library functions, preserving rest of the sycl-ls functionality.

here as well?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd also move "/dev/dri/renderD128" to a global constant pointer, so that we could simply compare pglob->gl_pathv[0] == global_render_d128_const in the globfree to decide if we need to delegate it to a real implementation or not.

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