equal
deleted
inserted
replaced
112 name = KPath; |
112 name = KPath; |
113 name.Append(aFileName); |
113 name.Append(aFileName); |
114 r = dir.Open(TheFs, name, KEntryAttNormal); |
114 r = dir.Open(TheFs, name, KEntryAttNormal); |
115 test_KErrNone(r); |
115 test_KErrNone(r); |
116 TEntry entry; |
116 TEntry entry; |
117 r = dir.Read(entry); |
117 test(dir.Read(entry) == KErrNone); |
118 test_KErrNone(r); |
|
119 dir.Close(); |
118 dir.Close(); |
120 } |
119 } |
121 |
120 |
122 void CheckNonMatch(const TDesC& aFileName) |
121 void CheckNonMatch(const TDesC& aFileName) |
123 { |
122 { |
127 name = KPath; |
126 name = KPath; |
128 name.Append(aFileName); |
127 name.Append(aFileName); |
129 r = dir.Open(TheFs, name, KEntryAttNormal); |
128 r = dir.Open(TheFs, name, KEntryAttNormal); |
130 test_KErrNone(r); |
129 test_KErrNone(r); |
131 TEntry entry; |
130 TEntry entry; |
132 r = dir.Read(entry); |
131 test(dir.Read(entry) == KErrEof); |
133 test_Equal(KErrEof, r); |
|
134 dir.Close(); |
132 dir.Close(); |
135 } |
133 } |
136 |
134 |
137 void TestFilenameMatches() |
135 void TestFilenameMatches() |
138 { |
136 { |
184 { |
182 { |
185 //-- set up console output |
183 //-- set up console output |
186 F32_Test_Utils::SetConsole(test.Console()); |
184 F32_Test_Utils::SetConsole(test.Console()); |
187 |
185 |
188 TInt nRes=TheFs.CharToDrive(gDriveToTest, gDriveNum); |
186 TInt nRes=TheFs.CharToDrive(gDriveToTest, gDriveNum); |
189 test_KErrNone(nRes); |
187 test(nRes==KErrNone); |
190 |
188 |
191 PrintDrvInfo(TheFs, gDriveNum); |
189 PrintDrvInfo(TheFs, gDriveNum); |
192 |
190 |
193 if(Is_SimulatedSystemDrive(TheFs, gDriveNum) || Is_Fat(TheFs, gDriveNum) || Is_Lffs(TheFs, gDriveNum)) |
191 if(Is_Win32(TheFs, gDriveNum) || Is_Fat(TheFs, gDriveNum) || Is_Lffs(TheFs, gDriveNum)) |
194 { |
192 { |
195 TestFilenameMatches(); |
193 TestFilenameMatches(); |
196 } |
194 } |
197 else |
195 else |
198 { |
196 { |