Skip to content

Commit

Permalink
fix bug in spawn test's usage of search
Browse files Browse the repository at this point in the history
searching for a substring returns a range, not a tuple, so these could never fail
(cherry picked from commit 1080edb)
ref #14123
  • Loading branch information
tkelman committed Nov 30, 2015
1 parent 95368ee commit 5603ced
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/spawn.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ yes = `perl -le 'while (1) {print STDOUT "y"}'`
@test length(spawn(pipeline(`echo hello`, `sort`)).processes) == 2

out = readall(`echo hello` & `echo world`)
@test search(out,"world") != (0,0)
@test search(out,"hello") != (0,0)
@test search(out,"world") != 0:-1
@test search(out,"hello") != 0:-1
@test readall(pipeline(`echo hello` & `echo world`, `sort`)) == "hello\nworld\n"

@test (run(`printf " \033[34m[stdio passthrough ok]\033[0m\n"`); true)
Expand Down

0 comments on commit 5603ced

Please sign in to comment.