This is an automated email from the ASF dual-hosted git repository. twolf pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mina-sshd.git
The following commit(s) were added to refs/heads/master by this push: new 2816b6057 Fix test for windows 2816b6057 is described below commit 2816b60573a4d03ce1d9a284305aa30dfb93dca9 Author: Thomas Wolf <tw...@apache.org> AuthorDate: Sat May 10 21:19:24 2025 +0200 Fix test for windows --- .../java/org/apache/sshd/sftp/client/fs/SftpFileSystemTest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sshd-sftp/src/test/java/org/apache/sshd/sftp/client/fs/SftpFileSystemTest.java b/sshd-sftp/src/test/java/org/apache/sshd/sftp/client/fs/SftpFileSystemTest.java index ad45d9804..2dec9e9c9 100644 --- a/sshd-sftp/src/test/java/org/apache/sshd/sftp/client/fs/SftpFileSystemTest.java +++ b/sshd-sftp/src/test/java/org/apache/sshd/sftp/client/fs/SftpFileSystemTest.java @@ -532,8 +532,11 @@ public class SftpFileSystemTest extends AbstractSftpFilesSystemSupport { String longName = entry.getLongFilename(); assertNotNull(longName); items.add(longName); - assertFalse(longName.contains("OWNER@")); - assertFalse(longName.contains("GROUP@")); + if (!OsUtils.isWin32()) { + // On Windows we have no owner/group... + assertFalse(longName.contains("OWNER@")); + assertFalse(longName.contains("GROUP@")); + } String[] parts = longName.split("\\s+"); assertTrue(parts.length > 4); long size = Long.parseLong(parts[4]);