Commit 476597b
[tests] Convert to Unix style line endings (#551)
Context: dotnet/android@130905e
Context: xamarin/QualityAssurance#3478
We've recently started running `Java.Interop` tests on an Android target
as part of the `Mono.Android-Tests` suite. This has introduced some
seemingly harmless failures[0] when building this suite on Windows and
then running it on Android. We can fix this by converting line endings
before comparing strings.
[0]:
01-02 16:18:11.949 I/NUnit (23743): Failed tests:
01-02 16:18:11.949 I/NUnit (23743): 1) Java.InteropTests.JniValueMarshaler_Boolean_ContractTests.JniValueMarshalerContractTests`1.CreateReturnValueFromManagedExpression (Java.Interop-Tests)
01-02 16:18:11.949 I/NUnit (23743): Expected string length 111 but was 99. Strings differ at index 1.
01-02 16:18:11.949 I/NUnit (23743): Expected: "{\r\n\tJniRuntime __jvm;\r\n\tbool __value;\r\n\r\n\ttry\r\n\t{\r\n\t\treturn _..."
01-02 16:18:11.949 I/NUnit (23743): But was: "{\n\tJniRuntime __jvm;\n\tbool __value;\n\n\ttry\n\t{\n\t\treturn __value..."
01-02 16:18:11.949 I/NUnit (23743): -------------^
01-02 16:18:11.949 I/NUnit (23743):
01-02 16:18:11.949 I/NUnit (23743): at Java.InteropTests.JniValueMarshalerContractTests`1[T].CheckExpression (Java.Interop.Expressions.JniValueMarshalerContext context, System.String expected, System.Linq.Expressions.Expression ret) [0x00083] in <59a94475f2544934836dac1b5c1cf1e1>:0
01-02 16:18:11.949 I/NUnit (23743): 2) Java.InteropTests.JniValueMarshaler_Char_ContractTests.JniValueMarshalerContractTests`1.CreateReturnValueFromManagedExpression (Java.Interop-Tests)
01-02 16:18:11.949 I/NUnit (23743): Expected string length 111 but was 99. Strings differ at index 1.
01-02 16:18:11.949 I/NUnit (23743): Expected: "{\r\n\tJniRuntime __jvm;\r\n\tchar __value;\r\n\r\n\ttry\r\n\t{\r\n\t\treturn _..."
01-02 16:18:11.949 I/NUnit (23743): But was: "{\n\tJniRuntime __jvm;\n\tchar __value;\n\n\ttry\n\t{\n\t\treturn __value..."
01-02 16:18:11.949 I/NUnit (23743): -------------^
01-02 16:18:11.949 I/NUnit (23743):
01-02 16:18:11.949 I/NUnit (23743): at Java.InteropTests.JniValueMarshalerContractTests`1[T].CheckExpression (Java.Interop.Expressions.JniValueMarshalerContext context, System.String expected, System.Linq.Expressions.Expression ret) [0x00083] in <59a94475f2544934836dac1b5c1cf1e1>:01 parent d61b329 commit 476597b
File tree
1 file changed
+6
-2
lines changed- tests/Java.Interop-Tests/Java.Interop
1 file changed
+6
-2
lines changedLines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
263 | 267 | | |
264 | | - | |
265 | | - | |
| 268 | + | |
| 269 | + | |
266 | 270 | | |
267 | 271 | | |
268 | 272 | | |
| |||
0 commit comments