kerneltest/f32test/server/t_mvdr.cpp
branchRCL_3
changeset 257 3e88ff8f41d5
parent 256 c1f20ce4abcf
equal deleted inserted replaced
256:c1f20ce4abcf 257:3e88ff8f41d5
    17 // afterwards with disk verification utility.
    17 // afterwards with disk verification utility.
    18 // 
    18 // 
    19 //
    19 //
    20 
    20 
    21 
    21 
    22 #define __E32TEST_EXTENSION__
       
    23 #include <e32test.h>
    22 #include <e32test.h>
    24 #include <f32file.h>
    23 #include <f32file.h>
    25 
    24 
    26 // -------- local test data --------
    25 // -------- local test data --------
    27 
    26 
    49 
    48 
    50 	test(TheFs.SetSessionPath(KSessionPath) == KErrNone);
    49 	test(TheFs.SetSessionPath(KSessionPath) == KErrNone);
    51 
    50 
    52 	CFileMan *fm = 0;
    51 	CFileMan *fm = 0;
    53 	TRAPD(r, fm = CFileMan::NewL(TheFs));
    52 	TRAPD(r, fm = CFileMan::NewL(TheFs));
    54 	test_KErrNone(r);
    53 	test(r == KErrNone);
    55 
    54 
    56 	const TInt KMaxDirs = 32;
    55 	const TInt KMaxDirs = 32;
    57 
    56 
    58 	TInt i;
    57 	TInt i;
    59 	for (i = 0; i < KMaxDirs; ++i)
    58 	for (i = 0; i < KMaxDirs; ++i)
    78 			TBuf<32> dstDirName(KSessionPath);
    77 			TBuf<32> dstDirName(KSessionPath);
    79 			dstDirName.AppendFormat(_L("testdir.%03x\\movedir.%03x\\"), j, ++ctr);
    78 			dstDirName.AppendFormat(_L("testdir.%03x\\movedir.%03x\\"), j, ++ctr);
    80 			srcDirName.SetLength(srcDirName.Length() - 1);
    79 			srcDirName.SetLength(srcDirName.Length() - 1);
    81 			dstDirName.SetLength(dstDirName.Length() - 1);
    80 			dstDirName.SetLength(dstDirName.Length() - 1);
    82 			r = fm->Move(srcDirName, dstDirName);
    81 			r = fm->Move(srcDirName, dstDirName);
    83 			test_KErrNone(r);
    82 			test(r == KErrNone);
    84 			}
    83 			}
    85 		}
    84 		}
    86 
    85 
    87 	delete fm;
    86 	delete fm;
    88 
    87