Skip to content

Commit

Permalink
[iOS] Fix ZipPackage_CreateWithFileAccessWrite test (#72850)
Browse files Browse the repository at this point in the history
On iOS, this test was failing due to not being able to write files in the app root directory.  The fix is to write a file in the TestDirectory, which is a subdirectory under the app root and is writeable.

Fixes #72837
  • Loading branch information
steveisok committed Jul 27, 2022
1 parent 1f98974 commit fbced1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libraries/System.IO.Packaging/tests/Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3698,7 +3698,7 @@ public void CreateWithFileAccessWrite()
[SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "Desktop doesn't support Package.Open with FileAccess.Write")]
public void ZipPackage_CreateWithFileAccessWrite()
{
string packageName = "test.zip";
string packageName = Path.Combine(TestDirectory, "test.zip");

using (Package package = Package.Open(packageName, FileMode.Create, FileAccess.Write))
{
Expand Down

0 comments on commit fbced1b

Please sign in to comment.