1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tests: make the flaky array_access_optimisation_test.v failures on the macos CI, more easily diagnosable

This commit is contained in:
Delyan Angelov 2023-04-01 17:33:44 +03:00
parent 5b8d6c0a60
commit 58dd9ee6a2

View File

@ -39,7 +39,12 @@ fn test_array_optimisation() {
p.wait() p.wait()
p.close() p.close()
assert stdout.contains('// THE END.') ending := '// THE END.'
it_ends_properly := stdout.contains(ending)
if !it_ends_properly {
dump(stdout)
}
assert it_ends_properly
for line in stdout.split('\n') { for line in stdout.split('\n') {
direct(line) direct(line)