This matches GNU binutils.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
This comment was removed by arichardson.
Comment Actions
LGTM.
llvm/test/tools/llvm-readobj/ELF/note-generic.s | ||
---|---|---|
22 ↗ | (On Diff #321678) | This is slightly surprising now, though probably harmless. |
llvm/test/tools/llvm-readobj/ELF/note-generic.s | ||
---|---|---|
22 ↗ | (On Diff #321678) | I think FileCheck also matches EOF for -EMPTY? Or possibly it matches the \n after func. |
llvm/test/tools/llvm-readobj/ELF/note-generic.s | ||
---|---|---|
22 ↗ | (On Diff #321678) | Yes, it'll be something like the matching EOF line (after all, there is no output at that point). It's not really worth worrying about though. I'm not sure if there's a clear fix. Maybe a CHECK-NOT: {{.}} would make more sense? |
llvm/test/tools/llvm-readobj/ELF/note-generic.s | ||
---|---|---|
22 ↗ | (On Diff #321678) | That seems to do the same (since the last match ends before the newline. I can't find a way to make it fail if there is an extra newline (other than e.g. piping to hexdump). This also works fine if the output ends in \n\n: // GNU-NEXT: XYZ 0x00000000 func{{$}} // GNU-NOT: {{.}} |
llvm/test/tools/llvm-readobj/ELF/note-generic.s | ||
---|---|---|
22 ↗ | (On Diff #321678) | Fair enough. Something to look at another time, I guess. I'd just delete this line and call it good then, but happy for you to do something else too. |