[llvm] [llvm-objdump][MachO] Update check in flaky test that depends on directory path (PR #150674)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 4 01:38:54 PDT 2025
================
@@ -1,7 +1,7 @@
## This test verifies that llvm-objdump correctly prints function starts data.
-RUN: llvm-objdump --macho --function-starts %p/Inputs/hello.exe.macho-i386 | FileCheck %s --check-prefix=32-BIT --implicit-check-not=_main
-RUN: llvm-objdump --macho --function-starts=addrs %p/Inputs/hello.exe.macho-i386 | FileCheck %s --check-prefix=32-BIT --implicit-check-not=_main
+RUN: llvm-objdump --macho --function-starts %p/Inputs/hello.exe.macho-i386 | FileCheck %s --check-prefix=32-BIT --implicit-check-not='{{(^| )_main}}'
----------------
jh7370 wrote:
It's a bit edge-casey, but this will still fail for paths like `/my/contrived _main/path`. Adding `$` might help. assuming that the strings we're talking about are always at the end of lines (I'm not familiar with the details of this output).
https://github.com/llvm/llvm-project/pull/150674
More information about the llvm-commits
mailing list