-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[android] Replace URL tests that use hardcoded /tmp #2636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@swift-ci test |
Passed all tests, let me know if there's anything else. |
Ping, just following up. |
@buttaface could you resolve the conflict then it should be ok to merge in |
In Android /tmp doesn't exist, and the temporary directory is normally /data/local/tmp. It is not a symlink. The tests were mostly working, but because `resolvingSymlinksInPath` returns a trailing slash if the directory actually exists, in Android it was returning without the final trailing slash in some of the cases. The changes split the large test into smaller pieces that test one of the behaviours of `resolvingSymlinksInPath`, and tries not to use the temporary directory by itself or suppose anything about it. There are, however, a couple of tests that check behaviours that are only applicable to Darwin, so those tests are only performed in Darwin platforms.
1bd1347
to
c46a5fa
Compare
Done. |
@swift-ci test linux |
1 similar comment
@swift-ci test linux |
@swift-ci test and merge |
Maybe you have to approve it on github first? |
@buttaface There is often issues between GitHub and the Swift CI servers whereby messages from one to the other seem to get lost. Since it passed ok on Linux I have merged it in manually. |
Alright, thanks. |
In Android /tmp doesn't exist, and the temporary directory is normally
/data/local/tmp. It is not a symlink. The tests were mostly working, but
because
resolvingSymlinksInPath
returns a trailing slash if thedirectory actually exists, in Android it was returning without the final
trailing slash in some of the cases.
The changes split the large test into smaller pieces that test one of
the behaviours of
resolvingSymlinksInPath
, and tries not to use thetemporarl directory by itself or suppose anything about it.
There are, however, a couple of tests that check behaviours that are
only applicable to Darwin, so those tests are only performed in Darwin
platforms.
This is simply a rebase of #2145, as @drodriguez asked me to do. This pull fixes the last remaining test that fails for me when building Foundation natively on Android.
@spevans, you already substantially reviewed this pull, let me know if there's anything else.