glsl/tests: Use splitlines() instead of strip()
authorMichel Dänzer <mdaenzer@redhat.com>
Wed, 20 Nov 2019 10:15:04 +0000 (11:15 +0100)
committerMichel Dänzer <michel@daenzer.net>
Thu, 5 Dec 2019 11:31:17 +0000 (12:31 +0100)
commitf6a913bb9540a9c3fa5a22ad5e08dfe87dafdaaf
tree533d30ac8c514b9de9dd440b56012bf5a6f79641
parent96aef08dc6f4ea4a79cdf995d867d08e8f838b2a
glsl/tests: Use splitlines() instead of strip()

strip() removes leading and trailing newlines, but leaves newlines
between multiple lines in the string. This could cause failures when
comparing the output of cross-compiled Windows binaries (producing
Windows-style newlines) to the expected output with Unix-style newlines.

Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
src/compiler/glsl/tests/warnings_test.py