projects/aports·blob master · refs

40 lines · 1.7 KiB

1From 04b0c8b1274918015c91f609cd63fdda6099ab95 Mon Sep 17 00:00:00 2001
2Patch-Source: https://github.com/PowerShell/PowerShell/issues/17889
3From: Antoine Martin <[email protected]>
4Date: Tue, 26 Jul 2022 20:34:30 -0400
5Subject: [PATCH 1/1] Neutralize PSTests.Parallel.FileSystemProviderTests.TestMode
6
7PSTests.Parallel.FileSystemProviderTests.TestMode prints error:
8[xUnit.net 00:00:06.26] PSTests.Parallel.FileSystemProviderTests.TestMode [FAIL]
9 Failed PSTests.Parallel.FileSystemProviderTests.TestMode [5 ms]
10 Error Message:
11 Assert.Equal() Failure
12 ↓ (pos 0)
13Expected: -----
14Actual: l----
15 ↑ (pos 0)
16 Stack Trace:
17 at PSTests.Parallel.FileSystemProviderTests.TestMode() in /home/user/projects/powershell/testing/powershell/src/PowerShell-7.2.5/test/xUnit/csharp/test_FileSystemProvider.cs:line 123
18
19This patch fixes this failed test by pointing the to-be-tested file to
20/bin/busybox rather than /bin/echo, as the latter is a symbolic link
21
22---
23 test/xUnit/csharp/test_FileSystemProvider.cs | 2 +-
24 1 file changed, 1 insertion(+), 1 deletion(-)
25
26diff --git a/test/xUnit/csharp/test_FileSystemProvider.cs b/test/xUnit/csharp/test_FileSystemProvider.cs
27index 85ab0b2ee..160862146 100644
28--- a/test/xUnit/csharp/test_FileSystemProvider.cs
29+++ b/test/xUnit/csharp/test_FileSystemProvider.cs
30@@ -109,7 +109,7 @@ namespace PSTests.Parallel
31 {
32 directoryObject = new DirectoryInfo(@"/");
33 fileObject = new FileInfo(@"/etc/hosts");
34- executableObject = new FileInfo(@"/bin/echo");
35+ executableObject = new FileInfo(@"/bin/busybox");
36 }
37 else
38 {
39--
402.36.2