File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 6565 @test run (ur, ` /bin/bash -c "echo test"` , iobuff)
6666 seek (iobuff, 0 )
6767 # Test that we get the output we expect (e.g. the second line is `test`)
68- @test split ( String ( read ( iobuff)), " \n " )[2 ] == " test"
68+ @test readlines ( iobuff)[2 ] == " test"
6969 end
7070 end
7171
259259 iobuff = IOBuffer ()
260260 @test ! run (ur, cmd, iobuff; tee_stream= devnull )
261261 seekstart (iobuff)
262- @test split ( String ( read ( iobuff)), " \n " )[2 ] == " Cannot force an architecture"
262+ @test readlines ( iobuff)[2 ] == " Cannot force an architecture"
263263
264264 ur = preferred_runner ()(dir; platform= platform, lock_microarchitecture= false )
265265 iobuff = IOBuffer ()
277277 iobuff = IOBuffer ()
278278 @test ! run (ur, cmd, iobuff; tee_stream= devnull )
279279 seekstart (iobuff)
280- lines = split ( String ( read ( iobuff)), " \n " )
280+ lines = readlines ( iobuff)
281281 @test lines[2 ] == " You used one or more of the unsafe flags: -Ofast, -ffast-math, -funsafe-math-optimizations"
282282 @test lines[3 ] == " Please repent."
283283
You can’t perform that action at this time.
0 commit comments