140810.2.3 · 52dcb048d8ff6964beed37ef4c625de95f62298c
Adjust other tests
Test searches that shouldn't produce results now need "[1]" as expected output to catch the non-zero exit code.
reading declarations
@@ -7,3 +7,4 @@ Complain about nonexistent path: $ ag foo doesnt_exist ERR: Error stat()ing: doesnt_exist ERR: Error opening directory doesnt_exist: No such file or directory+ [1]
@@ -18,3 +18,4 @@ Search a big file: Fail to regex search a big file: $ $TESTDIR/../../ag --nocolor --workers=1 --parallel 'hello.*' $TESTDIR/big_file.txt ERR: Skipping */big_file.txt: pcre_exec() can't handle files larger than 2147483647 bytes. (glob)+ [1]
@@ -7,8 +7,11 @@ Setup: Case sensitive by default: $ ag foo sample+ [1] $ ag FOO sample+ [1] $ ag 'f.o' sample+ [1] $ ag Foo sample 1:Foo $ ag 'F.o' sample
@@ -9,8 +9,10 @@ Setup: $ echo "a.txt" > .git/info/exclude $ ag --ignore-dir .git test+ [1] $ ag --hidden --ignore-dir .git test+ [1] $ ag -U --ignore-dir .git test a.txt:1:test@@ -22,12 +24,15 @@ Setup: $ echo 'whatever' > ./.hidden/a.txt $ ag whatever+ [1] $ ag --hidden whatever+ [1] $ echo "" > .git/info/exclude $ ag whatever+ [1] $ ag --hidden whatever .hidden/a.txt:1:whatever