File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 65
65
@test run (ur, ` /bin/bash -c "echo test"` , iobuff)
66
66
seek (iobuff, 0 )
67
67
# 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"
69
69
end
70
70
end
71
71
259
259
iobuff = IOBuffer ()
260
260
@test ! run (ur, cmd, iobuff; tee_stream= devnull )
261
261
seekstart (iobuff)
262
- @test split ( String ( read ( iobuff)), " \n " )[2 ] == " Cannot force an architecture"
262
+ @test readlines ( iobuff)[2 ] == " Cannot force an architecture"
263
263
264
264
ur = preferred_runner ()(dir; platform= platform, lock_microarchitecture= false )
265
265
iobuff = IOBuffer ()
277
277
iobuff = IOBuffer ()
278
278
@test ! run (ur, cmd, iobuff; tee_stream= devnull )
279
279
seekstart (iobuff)
280
- lines = split ( String ( read ( iobuff)), " \n " )
280
+ lines = readlines ( iobuff)
281
281
@test lines[2 ] == " You used one or more of the unsafe flags: -Ofast, -ffast-math, -funsafe-math-optimizations"
282
282
@test lines[3 ] == " Please repent."
283
283
You can’t perform that action at this time.
0 commit comments