diff --git a/src/FileCheck.py b/src/FileCheck.py index e3171e1..27d951e 100755 --- a/src/FileCheck.py +++ b/src/FileCheck.py @@ -179,7 +179,7 @@ def dump_check(check): print(current_check.source_line.rstrip()) print(" ^") print(":?:?: note: scanning from here") - print("TODO") + print(current_line) print("^") print(":?:?: note: possible intended match here") print("TODO") diff --git a/tests/integration/tests/basic_functionality/check_commands/CHECK/one_string/01-negative_match/sample.itest b/tests/integration/tests/basic_functionality/check_commands/CHECK/one_string/01-negative_match/sample.itest index 8b1bf03..781f056 100644 --- a/tests/integration/tests/basic_functionality/check_commands/CHECK/one_string/01-negative_match/sample.itest +++ b/tests/integration/tests/basic_functionality/check_commands/CHECK/one_string/01-negative_match/sample.itest @@ -1,12 +1,12 @@ ; RUN: cat %S/filecheck.input | (%FILECHECK_EXEC %S/filecheck.check 2>&1 || true) | %FILECHECK_TESTER_EXEC %s ; CHECK: {{^.*}}FileCheck -; CHECK {{.*}}filecheck.check:1:.*: error: CHECK: expected string not found in input{{$}} -; CHECK {{^}}; CHECK: foo{{$}} -; CHECK {{^}} ^{{$}} -; CHECK {{^}}:.*:.*: note: scanning from here{{$}} -; CHECK {{^}}hello{{$}} -; CHECK {{^}}^{{$}} -; CHECK {{^}}:.*:.*: note: possible intended match here{{$}} -; CHECK {{^}}hello{{$}} -; CHECK: {{^}} ^{{$}} +; CHECK: {{.*}}filecheck.check:1:10: error: CHECK: expected string not found in input{{$}} +; CHECK: {{^}}; CHECK: foo{{$}} +; CHECK: {{^}} ^{{$}} +; CHECK: {{^:.*:.*: note: scanning from here$}} +; CHECK: {{^}}hello{{$}} +; CHECK: {{^}}^{{$}} +; CHECK: {{^:.*:.*: note: possible intended match here$}} +; CHECK: {{^.*$}} +; CHECK: {{^.*$}} ; CHECK-EMPTY