From 5603ced10e5c72eee39f4fb98291d7abe5122129 Mon Sep 17 00:00:00 2001 From: Tony Kelman Date: Tue, 24 Nov 2015 13:39:24 -0800 Subject: [PATCH] fix bug in spawn test's usage of search searching for a substring returns a range, not a tuple, so these could never fail (cherry picked from commit 1080edb833f92f648f07ae45b57647d14c97ff90) ref #14123 --- test/spawn.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/spawn.jl b/test/spawn.jl index 5707e28a917f1..398198e83095f 100644 --- a/test/spawn.jl +++ b/test/spawn.jl @@ -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)