The tests can fail if working directory where the tests were launched
has a error substring in its path.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Won't this just move the failure to cases with "error:" in the name? Can these change to read from stdin, or add a regex for the filename?
LGTM, but best leave it a bit in case others have comments.
llvm/test/MC/Hexagon/multiple-pc4.s | ||
---|---|---|
1 | Not related to your change, but does this line actually run FileCheck at all? I'm pretty sure it's missing a | character somewhere... Same goes with a few other tests you've modified. (I am not familiar with these tests though, so my comment may be incorrect). |
It does, but there are many other tests that would run into that issue already. I suspect colons in file names are very rare...
llvm/test/MC/Hexagon/multiple-pc4.s | ||
---|---|---|
1 | I think it runs FileCheck. In this patch I modified only tests that were complaining about "error" substring in the path. |
llvm/test/MC/Hexagon/multiple-pc4.s | ||
---|---|---|
1 | Ah, I compeltely misread that line, thanks! (The normal pattern is something like 2>&1 | FileCheck ... without the <%t at the end, so I read the 2>%t; bit as that! |
I'm fine with the patch, but it's a shame the solution isn't more robust.
Its not self-evident why runline is written like that, so I expect uses without the ':' could creep back in.
LGTM, but best leave it a bit in case others have comments.
It's been a week, is it ok if I submit this?
I'm fine with the patch, but it's a shame the solution isn't more robust.
I'm open for any suggestions.
Not related to your change, but does this line actually run FileCheck at all? I'm pretty sure it's missing a | character somewhere... Same goes with a few other tests you've modified.
(I am not familiar with these tests though, so my comment may be incorrect).