Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Something is wrong with the greediness in one example #89

Open
stanislaw opened this issue Jan 26, 2020 · 1 comment
Open

Something is wrong with the greediness in one example #89

stanislaw opened this issue Jan 26, 2020 · 1 comment
Labels
bug Something isn't working clear action it is clear what has to be done or checked

Comments

@stanislaw
Copy link
Member

See 10-edge-case-llvm-vs-py-ghost-newline-in-llvm:

; RUN: echo -e "String1" | (%FILECHECK_EXEC %S/CHECK.check 2>&1; test $? = 1;) | %FILECHECK_EXEC %s --strict-whitespace --match-full-lines
; CHECK:{{^.*}}FileCheck{{(\.py)?$}}
// TODO: Something wrong with the greediness here:
; CHECK***:{{^.*}}CHECK.check:2:8: error: CHECK***: expected string not found in input
; CHECK:{{^.*}}
// TODO: And here:
; CHECK:{{.*}}String2
; CHECK:       ^
; CHECK:<stdin>:1:8: note: scanning from here
; CHECK:String1
; CHECK:       ^
; CHECK-EMPTY:
@stanislaw stanislaw added the bug Something isn't working label Feb 23, 2020
@stanislaw
Copy link
Member Author

Also this:

; RUN: printf "String1" | %expect_exit 1 %FILECHECK_EXEC "%S/CHECK.check" | %FILECHECK_EXEC "%s" --strict-whitespace --match-full-lines

// TODO: Something wrong with the greediness here:
; CHECK:{{^.*}}CHECK.check:2:8: error: {{CHECK}}: expected string not found in input
// TODO: And here:
; CHECK:{{^CHECK}}: String2
; CHECK:       ^
; CHECK:<stdin>:1:8: note: scanning from here
; CHECK:String1
; CHECK:       ^
; CHECK-EMPTY:

@stanislaw stanislaw added the clear action it is clear what has to be done or checked label Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working clear action it is clear what has to be done or checked
Projects
None yet
Development

No branches or pull requests

1 participant