Index: tests/OFFileManagerTests.m ================================================================== --- tests/OFFileManagerTests.m +++ tests/OFFileManagerTests.m @@ -332,16 +332,16 @@ destinationIRI.fileSystemRepresentation; [_fileManager createSymbolicLinkAtPath: destinationPath withDestinationPath: sourcePath]; } @catch (OFCreateSymbolicLinkFailedException *e) { - if (e.errNo == EPERM) - OTSkip(@"No permission to create symlink.\n" - @"On Windows, only the administrator can create " - @"symbolic links."); - else + if (e.errNo != EPERM) @throw e; + + OTSkip(@"No permission to create symlink.\n" + @"On Windows, only the administrator can create symbolic " + @"links."); } attributes = [_fileManager attributesOfItemAtIRI: destinationIRI]; OTAssertEqual(attributes.fileType, OFFileTypeSymbolicLink); OTAssertEqualObjects([OFString stringWithContentsOfIRI: destinationIRI], @@ -355,13 +355,20 @@ OFData *data = [OFData dataWithItems: "test" count: 4]; OFString *testFilePath = _testFileIRI.fileSystemRepresentation; OFFileAttributes attributes; OFArray *extendedAttributeNames; - [_fileManager setExtendedAttributeData: data - forName: @"user.test" - ofItemAtPath: testFilePath]; + @try { + [_fileManager setExtendedAttributeData: data + forName: @"user.test" + ofItemAtPath: testFilePath]; + } @catch (OFSetItemAttributesFailedException *e) { + if (e.errNo != ENOTSUP) + @throw e; + + OTSkip(@"Extended attributes are not supported"); + } attributes = [_fileManager attributesOfItemAtIRI: _testFileIRI]; extendedAttributeNames = [attributes objectForKey: OFFileExtendedAttributesNames]; OTAssertNotNil(extendedAttributeNames);