[llvm-bugs] [Bug 48089] New: FileCheck with multiple check prefixes prints the wrong prefix for failing -dag checks

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Nov 5 07:08:48 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=48089

            Bug ID: 48089
           Summary: FileCheck with multiple check prefixes prints the
                    wrong prefix for failing -dag checks
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: hans at chromium.org
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

For example:

$ cat /tmp/x
BAR-DAG: world
FOO-DAG: Hello

$ echo Hello world | bin/FileCheck --check-prefix=FOO --check-prefix=BAR /tmp/x
(all good)

$ echo Hello LLVM | bin/FileCheck --check-prefix=FOO --check-prefix=BAR /tmp/x
/tmp/x:1:10: error: FOO-DAG: expected string not found in input
BAR-DAG: world
         ^
<stdin>:1:1: note: scanning from here
Hello LLVM
^

Input file: <stdin>
Check file: /tmp/x

-dump-input=help explains the following input dump.

Input was:
<<<<<<
       1: Hello LLVM
dag:1     X~~~~~~~~~ error: no match found
>>>>>>



Note that the error says "FOO-DAG: expected string not found in input" even
though it's really BAR-DAG that's failing.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201105/5e0a0846/attachment-0001.html>


More information about the llvm-bugs mailing list