Skip to content

[clang][test] clang/test/Driver/amdgpu-toolchain.c weak regexp causes false negatives #133577

@pawosm-arm

Description

@pawosm-arm

The following check in the amdgpu-toolchain.c file causes false negatives:

// RELO-NOT: -shared

The problem occurs when -shared is a part of the build directory name, e.g. build-shared-llvm-project-debug, see:

clang/test/Driver/amdgpu-toolchain.c:36:14: error: RELO-NOT: excluded string found in input
// RELO-NOT: -shared
             ^
<stdin>:4:74: note: found here
InstalledDir: ~/upstream/build-shared-llvm-project-debug/bin
                              ^~~~~~~

Input file: <stdin>
Check file: clang/test/Driver/amdgpu-toolchain.c

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'test-suite

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions