diff -r c1f20ce4abcf -r 3e88ff8f41d5 kerneltest/f32test/manager/t_oom.cpp --- a/kerneltest/f32test/manager/t_oom.cpp Tue Aug 31 16:34:26 2010 +0300 +++ b/kerneltest/f32test/manager/t_oom.cpp Wed Sep 01 12:34:56 2010 +0100 @@ -15,7 +15,6 @@ // // -#define __E32TEST_EXTENSION__ #include #include #include @@ -33,10 +32,10 @@ RFormat format; TFileName sessionPath; TInt r=TheFs.SessionPath(sessionPath); - test_KErrNone(r); + test(r==KErrNone); TInt count; r=format.Open(TheFs,sessionPath,EHighDensity,count); - test_KErrNone(r); + test(r==KErrNone); // test(count==100); // TRequestStatus status; // TPckgBuf step; @@ -68,14 +67,14 @@ test.Printf(_L("FileSize = 0x%x\n"),size); RFile file; TInt r=file.Replace(TheFs,_L("\\F32-TST\\GOBBLE.DAT"),EFileRead); - test_KErrNone(r); + test(r==KErrNone); r=file.SetSize(size); - test_Value(r, r == KErrNone || r==KErrDiskFull); + test(r==KErrNone || r==KErrDiskFull); if (r==KErrDiskFull) { TFileName sessionPath; r=TheFs.SessionPath(sessionPath); - test_KErrNone(r); + test(r==KErrNone); test.Printf(_L("Error %S diskfull\n"),&sessionPath); // Reintroduce when we can detect that the test is being run manually // test.Getch(); @@ -126,7 +125,7 @@ bfDir.Append(KTstDir); test.Printf(_L("creating directory \"%S\".\n"), &bfDir); r = TheFs.MkDir(bfDir); - test_KErrNone(r); + test(r == KErrNone); TBuf<3 + 3 + 8 + 1 + 3> bfFlNm(bfDir); TInt ctr = 0; // create files until KErrDiskFull @@ -141,11 +140,11 @@ RFile f; r = f.Create(TheFs, bfFlNm, EFileShareExclusive | EFileStream | EFileWrite); - test_Value(r, r == KErrNone || r == KErrDiskFull); + test(r == KErrNone || r == KErrDiskFull); if (r == KErrNone) { r = f.SetSize(KFileSize); - test_Value(r, r == KErrNone || r == KErrDiskFull); + test(r == KErrNone || r == KErrDiskFull); } f.Close(); @@ -185,7 +184,7 @@ TDriveInfo driveInfo; TInt r=TheFs.Drive(driveInfo); - test_KErrNone(r); + test(r==KErrNone); if (driveInfo.iType==EMediaNotPresent) { test.Printf(_L("ERROR: MEDIA NOT PRESENT\n")); @@ -196,9 +195,9 @@ TFileName sessionPath; r=TheFs.SessionPath(sessionPath); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.MkDirAll(sessionPath); - test_Value(r, r == KErrCorrupt || r==KErrAlreadyExists || r==KErrNone); + test(r==KErrCorrupt || r==KErrAlreadyExists || r==KErrNone); if (r==KErrCorrupt) FormatFat(); if (r==KErrAlreadyExists) @@ -206,13 +205,13 @@ test.Next(_L("Remove test directory")); CFileMan* fman=CFileMan::NewL(TheFs); TInt ret=fman->RmDir(sessionPath); - test_KErrNone(ret); + test(ret==KErrNone); delete fman; } if (r!=KErrNone) { r=TheFs.MkDirAll(sessionPath); - test_KErrNone(r); + test(r==KErrNone); } Test1();