Commit e3d708c
[BaseTasks] fix
Tests in xamarin-android have started failing with:
libfoo.so : error XA4301: Cannot determine ABI of native library 'libfoo.so'.
Move this file to a directory with a valid Android ABI name such as 'libs/armeabi-v7a/'.
Where the test in question sets `Link=x86\libfoo.so`:
https://github.com/xamarin/xamarin-android/blob/bf63c3d116b38459678cb3aefd2f5826e78c385e/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/XASdkTests.cs#L115
This only fails on macOS and works fine on Windows. I didn't consider
this case in 90d7621.
I've added test cases for `\`, and added a `string.Replace()` that
should solve the problem on macOS.
I added test cases for `null` input as well.
Co-authored-by: Jonathan Pryor <jonpryor@vt.edu>\-delimited paths on macOS (#122)1 parent bdcf899 commit e3d708c
File tree
2 files changed
+43
-1
lines changed- src/Microsoft.Android.Build.BaseTasks
- tests/Microsoft.Android.Build.BaseTasks-Tests
2 files changed
+43
-1
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| |||
Lines changed: 39 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
13 | 21 | | |
14 | 22 | | |
15 | 23 | | |
| |||
65 | 73 | | |
66 | 74 | | |
67 | 75 | | |
68 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
69 | 85 | | |
70 | 86 | | |
71 | 87 | | |
| |||
76 | 92 | | |
77 | 93 | | |
78 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
79 | 101 | | |
80 | 102 | | |
81 | 103 | | |
| |||
130 | 152 | | |
131 | 153 | | |
132 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
133 | 171 | | |
134 | 172 | | |
135 | 173 | | |
| |||
0 commit comments