File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -104,24 +104,16 @@ struct AttachmentTests {
104
104
105
105
#if os(Windows)
106
106
static let maximumNameCount = Int ( _MAX_FNAME)
107
- static let reservedNames : [ String ] = {
108
- // Return the list of COM ports that are NOT configured (and so will fail
109
- // to open for writing.)
110
- ( 0 ... 9 ) . lazy
111
- . map { " COM \( $0) " }
112
- . filter { !PathFileExistsA( $0) }
113
- } ( )
114
107
#else
115
108
static let maximumNameCount = Int ( NAME_MAX)
116
- static let reservedNames : [ String ] = [ ]
117
109
#endif
118
110
119
111
@Test ( arguments: [
120
112
#"/\:"# ,
121
113
String ( repeating: " a " , count: maximumNameCount) ,
122
114
String ( repeating: " a " , count: maximumNameCount + 1 ) ,
123
115
String ( repeating: " a " , count: maximumNameCount + 2 ) ,
124
- ] + reservedNames ) func writeAttachmentWithBadName( name: String ) throws {
116
+ ] ) func writeAttachmentWithBadName( name: String ) throws {
125
117
let attachableValue = MySendableAttachable ( string: " <!doctype html> " )
126
118
let attachment = Test . Attachment ( attachableValue, named: name)
127
119
You can’t perform that action at this time.
0 commit comments