ObjFW  Check-in [fb5e45775f]

Overview
Comment:OFFileManagerTests: Skip symlink test on Wine
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: fb5e45775fefa8ba3807e548acaccbff5f83b7d56cc15bc9b25e9db40c852487
User & Date: js on 2024-03-17 16:20:32
Other Links: manifest | tags
Context
2024-03-17
17:26
GitHub Actions: Add MinGW on Fedora check-in: f5f4822756 user: js tags: trunk
16:20
OFFileManagerTests: Skip symlink test on Wine check-in: fb5e45775f user: js tags: trunk
16:14
OFMutableIRI: Fix -[appendPathComponent:] check-in: 1970fcd564 user: js tags: trunk
Changes

Modified tests/OFFileManagerTests.m from [61dea202f4] to [2e59c4d348].

314
315
316
317
318
319
320
321







322
323
324
325
326
327
328
329
330
331
332
333
	    @"test");
}
#endif

#ifdef OF_FILE_MANAGER_SUPPORTS_SYMLINKS
- (void)testCreateSymbolicLinkAtPathWithDestinationPath
{
	OFIRI *sourceIRI = [_testsDirectoryIRI







	    IRIByAppendingPathComponent: @"source"];
	OFIRI *destinationIRI = [_testsDirectoryIRI
	    IRIByAppendingPathComponent: @"destination"];
	OFFileAttributes attributes;

	[@"test" writeToIRI: sourceIRI];

	@try {
		OFString *sourcePath = sourceIRI.fileSystemRepresentation;
		OFString *destinationPath =
		    destinationIRI.fileSystemRepresentation;








|
>
>
>
>
>
>
>
|
|

<








314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331

332
333
334
335
336
337
338
339
	    @"test");
}
#endif

#ifdef OF_FILE_MANAGER_SUPPORTS_SYMLINKS
- (void)testCreateSymbolicLinkAtPathWithDestinationPath
{
	OFIRI *sourceIRI, *destinationIRI;
	OFFileAttributes attributes;

# ifdef OF_WINDOWS
	if ([OFSystemInfo wineVersion] != nil)
		OTSkip(@"Wine creates broken symlinks");
# endif

	sourceIRI = [_testsDirectoryIRI IRIByAppendingPathComponent: @"source"];
	destinationIRI = [_testsDirectoryIRI
	    IRIByAppendingPathComponent: @"destination"];


	[@"test" writeToIRI: sourceIRI];

	@try {
		OFString *sourcePath = sourceIRI.fileSystemRepresentation;
		OFString *destinationPath =
		    destinationIRI.fileSystemRepresentation;