1## Check that we only see 20 (the default error-limit) "cannot open" errors 2RUN: not %lld A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 2>&1 | \ 3RUN: FileCheck -check-prefix=DEFAULT %s 4 5DEFAULT: cannot open A: 6DEFAULT: cannot open T: 7DEFAULT-NOT: cannot open U: 8DEFAULT-NEXT: too many errors emitted, stopping now (use --error-limit=0 to see all errors) 9 10## Check that we only see 5 "cannot open" errors when --error-limit=5 11RUN: not %lld --error-limit=5 A B C D E F G H I J 2>&1 \ 12RUN: | FileCheck -check-prefix=LIMIT5 %s 13 14LIMIT5: cannot open A: 15LIMIT5: cannot open E: 16LIMIT5-NOT: cannot open F: 17LIMIT5-NEXT: too many errors emitted, stopping now (use --error-limit=0 to see all errors) 18 19## Check that we see all "cannot open" errors when --error-limit=0 (unimited) 20RUN: not %lld --error-limit=0 A B C D E F G H I J K L M N O P Q R S T U V W 2>&1 | \ 21RUN: FileCheck -check-prefix=UNLIMITED %s 22 23UNLIMITED: cannot open A: 24UNLIMITED: cannot open T: 25UNLIMITED: cannot open U: 26UNLIMITED: cannot open V: 27UNLIMITED: cannot open W: 28UNLIMITED-NOT: too many errors emitted, stopping now (use --error-limit=0 to see all errors) 29