ObjFW  Check-in [b30979ffc9]

Overview
Comment:tests: Use +[OFSystem temporaryDirectoryPath]
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: b30979ffc9910abb38df2086d552cb291b1f6eb6474ec335088121f74360f092
User & Date: js on 2021-05-13 20:07:50
Other Links: manifest | tags
Context
2021-05-24
22:27
runtime: Add lookup-asm-powerpc64-elf.S check-in: 05d65abf96 user: js tags: trunk
2021-05-13
20:13
Merge trunk into branch "amiga-library" check-in: 08361ff875 user: js tags: amiga-library
20:07
tests: Use +[OFSystem temporaryDirectoryPath] check-in: b30979ffc9 user: js tags: trunk
20:04
OFSystemInfo: Exclude \0 returned by confstr() check-in: f0528dda03 user: js tags: trunk
Changes

Modified tests/OFINIFileTests.m from [c77a7c32e4] to [9af27af9d8].

110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
	    R([foobar removeValueForKey: @"quxqux "]) &&
	    R([types removeValueForKey: @"array2"]))

	module = @"OFINIFile";

	/* FIXME: Find a way to write files on Nintendo DS */
#ifndef OF_NINTENDO_DS
# ifndef OF_IOS
	writePath = @"tmpfile.ini";
# else
	writePath = [OFString pathWithComponents: [OFArray arrayWithObjects:
	    [[OFApplication environment] objectForKey: @"HOME"],
	    @"tmp", @"tmpfile.ini", nil]];
# endif
	TEST(@"-[writeToFile:encoding:]",
	    R([file writeToFile: writePath
		       encoding: OFStringEncodingCodepage437]) &&
	    [[OFString
		stringWithContentsOfFile: writePath
				encoding: OFStringEncodingCodepage437]
	    isEqual: output])
	[[OFFileManager defaultManager] removeItemAtPath: writePath];
#else
	(void)output;
#endif

	objc_autoreleasePoolPop(pool);







<
|
<
|
<
<
<



<
|
|







110
111
112
113
114
115
116

117

118



119
120
121

122
123
124
125
126
127
128
129
130
	    R([foobar removeValueForKey: @"quxqux "]) &&
	    R([types removeValueForKey: @"array2"]))

	module = @"OFINIFile";

	/* FIXME: Find a way to write files on Nintendo DS */
#ifndef OF_NINTENDO_DS

	writePath = [[OFSystemInfo temporaryDirectoryPath]

	    stringByAppendingPathComponent: @"objfw-tests.ini"];



	TEST(@"-[writeToFile:encoding:]",
	    R([file writeToFile: writePath
		       encoding: OFStringEncodingCodepage437]) &&

	    [[OFString stringWithContentsOfFile: writePath
				       encoding: OFStringEncodingCodepage437]
	    isEqual: output])
	[[OFFileManager defaultManager] removeItemAtPath: writePath];
#else
	(void)output;
#endif

	objc_autoreleasePoolPop(pool);