equal
deleted
inserted
replaced
|
1 // Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // @file |
|
15 // various FAT test utilities |
|
16 // |
|
17 // |
|
18 |
|
19 |
|
20 #define __E32TEST_EXTENSION__ |
|
21 #include <f32file.h> |
|
22 #include <e32test.h> |
|
23 |
|
24 #include "fs_utils.h" |
|
25 |
|
26 extern RTest test; |
|
27 |
|
28 // Wait until file server cleanup following session disconnect has completed |
|
29 void FsBarrier() |
|
30 { |
|
31 RFs fs; |
|
32 TInt r = fs.Connect(); |
|
33 test_KErrNone(r); |
|
34 TRequestStatus s; |
|
35 fs.NotifyDestruction(s); |
|
36 test_Equal(KRequestPending, s.Int()); |
|
37 |
|
38 // This sends the disconnect message to the file server. |
|
39 fs.Close(); |
|
40 |
|
41 // Wait for session to be destroyed. This will happen when the file server |
|
42 // completes the disconnect message. |
|
43 User::WaitForRequest(s); |
|
44 } |
|
45 |
|
46 |