Skip to content

[SYCL][Driver][Test] Remove unnecessary sysroot for tests which checks driver diganostics - #23555

Open
jinge90 wants to merge 1 commit into
intel:syclfrom
jinge90:remove_sysroot_driver_early_stop
Open

jinge90 wants to merge 1 commit into
intel:syclfrom
jinge90:remove_sysroot_driver_early_stop

Conversation

@jinge90

@jinge90 jinge90 commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Some SYCL driver tests aim to test some driver diagnostics, the driver will fail and stop early in these tests, devicelib link will not run, so we can safely remove the sysroot.

driver diagnostic

Signed-off-by: jinge90 <ge.jin@intel.com>
@jinge90
jinge90 requested a review from a team as a code owner October 20, 2026 06:13
@jinge90
jinge90 requested a balanced review from Copilot October 20, 2026 06:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The narrow test-only cleanup preserves diagnostic checks, with no unresolved issues identified.

No open issues 🎉

What changed in this PR

Simplifies Clang’s SYCL driver diagnostic tests by removing sysroot arguments from commands expected to fail before device-library linking.

Changes:

  • Removes sysroot setup from negative-test invocations across eight files.
  • Preserves existing diagnostic assertions and leaves production code unchanged.
File Description
clang/​test/​Driver/​sycl-option-ownership.cpp Simplifies invalid register-allocation option test.
clang/​test/​Driver/​sycl-offload.cpp Simplifies invalid target and option tests.
clang/​test/​Driver/​sycl-offload-jit.cpp Simplifies invalid image-split value test.
clang/​test/​Driver/​sycl-offload-arch-intel-cpu.cpp Simplifies unsupported architecture tests.
clang/​test/​Driver/​sycl-lto.cpp Simplifies incompatible LTO option test.
clang/​test/​Driver/​sycl-host-compiler.cpp Simplifies host-compiler diagnostic tests.
clang/​test/​Driver/​sycl-ftarget-register-alloc-mode.cpp Simplifies invalid device and allocation-mode tests.
clang/​test/​Driver/​sycl-fsyclbin.cpp Simplifies device-image dependency conflict tests.

Review effort: Balanced

This branch has not been deployed

No deployments
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