-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Give tvOS a special value for Personal/MyDocuments #57508
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
Changes from 20 commits
6354dd0
0ee7a71
5854dfc
7473c19
877258f
b032fc0
43573f7
a39e472
392a09b
cfcb6dc
c50a1af
7e7d49b
064670d
a48cfe7
26354d7
4ee0555
75bf9e2
07660e2
e57d693
4b49b07
84609fc
b936dc1
5ad98b9
9ebb6b0
fc2cf38
74ddcff
a619fa7
33788e1
a3d96ed
0baf69f
e85a9e4
6f338fa
eb5706a
67a6c1d
e3cbd8c
538b631
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|
|
||
| using System; | ||
| using System.Runtime.InteropServices; | ||
|
|
||
| internal static partial class Interop | ||
| { | ||
| internal static partial class Sys | ||
| { | ||
| [DllImport(Libraries.SystemNative, EntryPoint = "SystemNative_SearchPath_TempDirectory")] | ||
| internal static extern string? SearchPathTempDirectory(); | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|
|
||
| namespace System.IO | ||
| { | ||
| public static partial class Path | ||
| { | ||
| private static string? DefaultTempPath => "/tmp/"; | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|
|
||
| using System; | ||
|
|
||
| namespace System.IO | ||
| { | ||
| public static partial class Path | ||
| { | ||
| private static string? s_defaultTempPath; | ||
|
|
||
| private static string? DefaultTempPath | ||
directhex marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| { | ||
| get | ||
| { | ||
| s_defaultTempPath ??= Interop.Sys.SearchPathTempDirectory()!; | ||
| return s_defaultTempPath!; | ||
| } | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -294,7 +294,7 @@ | |
| <TestTarget>$(AppleTestTarget)</TestTarget> | ||
| </XHarnessAppBundleToTest> | ||
| <!-- Create work items for run-only apps --> | ||
| <XHarnessAppBundleToTest Condition="Exists('$(TestArchiveRoot)runonly')" Include="$([System.IO.Directory]::GetDirectories('$(TestArchiveRoot)runonly', '*.app', System.IO.SearchOption.AllDirectories))" > | ||
| <XHarnessAppBundleToTest Condition="Exists('$(TestArchiveRoot)runonly') and '$(TargetOS)' != 'tvOS'" Include="$([System.IO.Directory]::GetDirectories('$(TestArchiveRoot)runonly', '*.app', System.IO.SearchOption.AllDirectories))" > | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should work on tvOS right? please file an issue so we follow up to reenable the "run-only" apps
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reference I have for runonly not working on tvOS is something @steveisok said in chat - Steve, is there an actual record of "runonly doesn't work on tvOS"?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can't get a return code from an iOS or tvOS device, which the functional tests expect. Not sure if there's an issue in xharness. @premun would know.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I don't think this is supported in mlaunch. I will confirm this on Monday
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If that were the case then this would fail on iOS too (and it doesn't seem to).
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @akoeplinger have you tested on device? Right now we have no Apple device runs anywhere
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah I thought we ran it on the staging pipeline? anyway, if it doesn't work on iOS we should exclude it too :)
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No It likely doesn't work on iOS either, but it'll take me ages to check on device via CI. I could exclude it too, here, though. Or exclude neither since we don't know the state of things for sure.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can test this for you on an iPhone. Can you give me instructions on how to build the app? |
||
| <!-- The sample app doesn't need test runner --> | ||
| <IncludesTestRunner>false</IncludesTestRunner> | ||
| <!-- The sample's C# Main method returns 42 so it should be considered by xharness as a success --> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.