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