diff -r c1f20ce4abcf -r 3e88ff8f41d5 kerneltest/f32test/server/t_dcallcaps.cpp --- a/kerneltest/f32test/server/t_dcallcaps.cpp Tue Aug 31 16:34:26 2010 +0300 +++ b/kerneltest/f32test/server/t_dcallcaps.cpp Wed Sep 01 12:34:56 2010 +0100 @@ -13,7 +13,6 @@ // Description: // -#define __E32TEST_EXTENSION__ #include #include #include @@ -77,6 +76,9 @@ TRequestStatus aStat3; TRequestStatus aStat4; +TVolumeInfo aVolInfo; +// TDriveInfo adriveInfo; + TBuf<40> systestfile; TBuf<40> pritestfile; TBuf<40> restestfile; @@ -103,22 +105,22 @@ mkdirname.Append(systestname); mkdirname.Append(KMkDirSub); r=TheFs.MkDirAll(mkdirname); - test_KErrNone(r); + test(r==KErrNone); TheFs.RmDir(mkdirname); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.SetSubst(systestname,EDriveO); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.RealName(_L("O:\\File.XXX"),realName); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.SetSubst(_L(""),EDriveO); //to unsubst - test_KErrNone(r); + test(r==KErrNone); r=TheFs.SetSessionPath(systestname); - test_KErrNone(r); + test(r==KErrNone); TheFs.NotifyChange(ENotifyAll,aStat1,systestname); test(aStat1==KRequestPending); @@ -133,29 +135,29 @@ oldName[0]=(TText)gDriveToTest; r=TheFs.GetShortName(systestfile, shortfilename); - test_Value(r, r == KErrNotFound || r==KErrNotSupported); + test(r==KErrNotFound || r==KErrNotSupported); r=TheFs.GetLongName(systestfile1, longfilename); - test_Value(r, r == KErrNotFound || r==KErrNotSupported); + test(r==KErrNotFound || r==KErrNotSupported); r=file1.Create(TheFs,oldName,EFileWrite); - test_Value(r, r == KErrNone || r==KErrAlreadyExists); + test(r==KErrNone || r==KErrAlreadyExists); file1.Close(); r=TheFs.Replace(oldName,systestfile); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.Rename(systestfile,systestfile1); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.Entry(systestfile1,entry); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.SetEntry(systestfile1,testtime,KEntryAttNormal,KEntryAttReadOnly); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.Delete(systestfile1); - test_KErrNone(r); + test(r==KErrNone); } LOCAL_C void ResourceRFsTest() @@ -170,22 +172,22 @@ mkdirname.Append(restestname); mkdirname.Append(KMkDirSub); r=TheFs.MkDirAll(mkdirname); - test_KErrNone(r); + test(r==KErrNone); TheFs.RmDir(mkdirname); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.SetSubst(restestname,EDriveO); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.RealName(_L("O:\\File.XXX"),realName); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.SetSubst(_L(""),EDriveO); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.SetSessionPath(restestname); - test_KErrNone(r); + test(r==KErrNone); TheFs.NotifyChange(ENotifyAll,aStat4,restestname); test(aStat4==KRequestPending); @@ -200,29 +202,29 @@ oldName[0]=(TText)gDriveToTest; r=TheFs.GetShortName(restestfile, shortfilename); - test_Value(r, r == KErrNone || r==KErrNotFound || r==KErrNotSupported); + test(r==KErrNone || r==KErrNotFound || r==KErrNotSupported); r=TheFs.GetLongName(restestfile1, longfilename); - test_Value(r, r == KErrNone || r==KErrNotFound || r==KErrNotSupported); + test(r==KErrNone || r==KErrNotFound || r==KErrNotSupported); r=file1.Create(TheFs,oldName,EFileWrite); - test_Value(r, r == KErrNone || r==KErrAlreadyExists); + test(r==KErrNone || r==KErrAlreadyExists); file1.Close(); r=TheFs.Replace(oldName,restestfile); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.Rename(restestfile,restestfile1); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.Entry(restestfile1,entry); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.SetEntry(restestfile1,testtime,KEntryAttNormal,KEntryAttReadOnly); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.Delete(restestfile1); - test_KErrNone(r); + test(r==KErrNone); } @@ -241,22 +243,22 @@ mkdirname.Append(KMkDirSub); r=TheFs.MkDirAll(mkdirname); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.RmDir(mkdirname); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.SetSubst(pritestfalseidname,EDriveO); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.RealName(_L("O:\\File.XXX"),realName); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.SetSubst(_L(""),EDriveO); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.SetSessionPath(pritestfalseidname); - test_KErrNone(r); + test(r==KErrNone); TheFs.NotifyChange(ENotifyAll,aStat2,pritestfalseidname); test(aStat2==KRequestPending); @@ -272,29 +274,29 @@ oldName[0]=(TText)gDriveToTest; r=TheFs.GetShortName(pritestfile, shortfilename); - test_Value(r, r == KErrNone || r==KErrNotFound || r==KErrNotSupported); + test(r==KErrNone || r==KErrNotFound || r==KErrNotSupported); r=TheFs.GetLongName(pritestfile1, longfilename); - test_Value(r, r == KErrNone || r==KErrNotFound || r==KErrNotSupported); + test(r==KErrNone || r==KErrNotFound || r==KErrNotSupported); r=file1.Create(TheFs,oldName,EFileWrite); - test_Value(r, r == KErrNone || r==KErrAlreadyExists); + test(r==KErrNone || r==KErrAlreadyExists); file1.Close(); r=TheFs.Replace(oldName,pritestfile); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.Rename(pritestfile,pritestfile1); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.Entry(pritestfile1,entry); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.SetEntry(pritestfile1,testtime,KEntryAttNormal,KEntryAttReadOnly); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.Delete(pritestfile1); - test_KErrNone(r); + test(r==KErrNone); } @@ -314,22 +316,22 @@ mkdirname.Append(KMkDirSub); r=TheFs.MkDirAll(mkdirname); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.RmDir(mkdirname); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.SetSubst(pritestname,EDriveO); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.RealName(_L("O:\\File.XXX"),realName); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.SetSubst(_L(""),EDriveO); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.SetSessionPath(pritestname); - test_KErrNone(r); + test(r==KErrNone); TheFs.NotifyChange(ENotifyAll,aStat2,pritestname); test(aStat2==KRequestPending); @@ -345,29 +347,29 @@ oldName[0]=(TText)gDriveToTest; r=TheFs.GetShortName(pritestfile, shortfilename); - test_Value(r, r == KErrNone || r==KErrNotFound || r==KErrNotSupported); + test(r==KErrNone || r==KErrNotFound || r==KErrNotSupported); r=TheFs.GetLongName(pritestfile1, longfilename); - test_Value(r, r == KErrNone || r==KErrNotFound || r==KErrNotSupported); + test(r==KErrNone || r==KErrNotFound || r==KErrNotSupported); r=file1.Create(TheFs,oldName,EFileWrite); - test_Value(r, r == KErrNone || r==KErrAlreadyExists); + test(r==KErrNone || r==KErrAlreadyExists); file1.Close(); r=TheFs.Replace(oldName,pritestfile); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.Rename(pritestfile,pritestfile1); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.Entry(pritestfile1,entry); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.SetEntry(pritestfile1,testtime,KEntryAttNormal,KEntryAttReadOnly); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.Delete(pritestfile1); - test_KErrNone(r); + test(r==KErrNone); } @@ -381,22 +383,22 @@ mkdirname.Append(theprivatepath); mkdirname.Append(KMkDirSub); r=TheFs.MkDirAll(mkdirname); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.RmDir(mkdirname); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.SetSubst(theprivatepath,EDriveO); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.RealName(_L("O:\\File.XXX"),realName); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.SetSubst(_L(""),EDriveO); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.SetSessionPath(theprivatepath); - test_KErrNone(r); + test(r==KErrNone); TheFs.NotifyChange(ENotifyAll,aStat3,theprivatepath); test(aStat3==KRequestPending); @@ -411,29 +413,29 @@ oldName[0]=(TText)gDriveToTest; r=TheFs.GetShortName(pritestfile, shortfilename); - test_Value(r, r == KErrNone || r==KErrNotFound || r==KErrNotSupported); + test(r==KErrNone || r==KErrNotFound || r==KErrNotSupported); r=TheFs.GetLongName(pritestfile1, longfilename); - test_Value(r, r == KErrNone || r==KErrNotFound || r==KErrNotSupported); + test(r==KErrNone || r==KErrNotFound || r==KErrNotSupported); r=file1.Create(TheFs,oldName,EFileWrite); - test_Value(r, r == KErrNone || r==KErrAlreadyExists); + test(r==KErrNone || r==KErrAlreadyExists); file1.Close(); r=TheFs.Replace(oldName,pritestfile); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.Rename(pritestfile,pritestfile1); - test_Value(r, r == KErrNone || r==KErrAlreadyExists); + test(r==KErrNone || r==KErrAlreadyExists); r=TheFs.Entry(pritestfile1,entry); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.SetEntry(pritestfile1,testtime,KEntryAttNormal,KEntryAttReadOnly); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.Delete(pritestfile1); - test_KErrNone(r); + test(r==KErrNone); } @@ -444,29 +446,29 @@ { r=TheFs.SetSessionPath(systestname); - test_KErrNone(r); + test(r==KErrNone); r=file1.Temp(TheFs,systestname,fromTemp,EFileWrite); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); r=file1.Create(TheFs,KFileSys,EFileWrite); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); r=file1.Open(TheFs,KFileSys,EFileWrite); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); r=file1.Open(TheFs,KFileSys,EFileRead); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); r=file1.Replace(TheFs,KFileSys,EFileWrite); - test_KErrNone(r); + test(r==KErrNone); r=file1.Rename(KFileSys3); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); TFindFile finder(TheFs); @@ -474,7 +476,7 @@ r=finder.FindWildByDir(KWildFile, KWildPath, dir); if (!(r==KErrNone)) test.Printf(_L("T_DCALLCAPS: test find wildcards r = %d (expected KErrNone)\n"), r); - test_KErrNone(r); + test(r==KErrNone); delete dir; } @@ -484,40 +486,40 @@ // { r=TheFs.SetSessionPath(restestname); - test_KErrNone(r); + test(r==KErrNone); r=file1.Temp(TheFs,restestname,fromTemp,EFileWrite); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); r=file1.Create(TheFs,KFileRes,EFileWrite); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); r=file1.Open(TheFs,KFileRes,EFileWrite|EFileShareExclusive ); - test_KErrNone(r); + test(r==KErrNone); r=file1.Rename(KFileRes3); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); r=file1.Open(TheFs,KFileRes3,EFileShareReadersOrWriters|EFileRead); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); r=file1.Open(TheFs,KFileRes3,EFileShareReadersOrWriters|EFileWrite); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); r=file1.Open(TheFs,KFileRes3,EFileShareReadersOnly); - test_KErrNone(r); + test(r==KErrNone); r=file1.ChangeMode(EFileShareExclusive); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); r=file1.Replace(TheFs,KFileRes,EFileWrite); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); } @@ -528,29 +530,29 @@ // { r=TheFs.SetSessionPath(pritestfalseidname); - test_KErrNone(r); + test(r==KErrNone); r=file1.Temp(TheFs,pritestfalseidname,fromTemp,EFileWrite); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); r=file1.Create(TheFs,KFilePri,EFileWrite); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); r=file1.Open(TheFs,KFilePri,EFileWrite); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); r=file1.Open(TheFs,KFilePri,EFileRead); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); r=file1.Replace(TheFs,KFilePri,EFileWrite); - test_KErrNone(r); + test(r==KErrNone); r=file1.Rename(KFilePri3); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); } @@ -560,29 +562,29 @@ // { r=TheFs.SetSessionPath(pritestname); - test_KErrNone(r); + test(r==KErrNone); r=file1.Temp(TheFs,pritestname,fromTemp,EFileWrite); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); r=file1.Create(TheFs,KFilePri,EFileWrite); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); r=file1.Open(TheFs,KFilePri,EFileWrite); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); r=file1.Open(TheFs,KFilePri,EFileRead); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); r=file1.Replace(TheFs,KFilePri,EFileWrite); - test_KErrNone(r); + test(r==KErrNone); r=file1.Rename(KFilePri3); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); } @@ -594,29 +596,29 @@ // { r=TheFs.SetSessionToPrivate(gTheDriveNum); - test_KErrNone(r); + test(r==KErrNone); r=file1.Temp(TheFs,theprivatepath,fromTemp,EFileWrite); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); r=file1.Create(TheFs,KFilePri,EFileWrite); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); r=file1.Open(TheFs,KFilePri,EFileWrite); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); r=file1.Open(TheFs,KFilePri,EFileRead); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); r=file1.Replace(TheFs,KFilePri,EFileWrite); - test_KErrNone(r); + test(r==KErrNone); r=file1.Rename(KFilePri3); - test_KErrNone(r); + test(r==KErrNone); file1.Close(); } @@ -631,30 +633,30 @@ TBuf<30> dirNameBuf(KSystemPath); dirNameBuf[0]=(TText)gDriveToTest; r=dir.Open(TheFs,dirNameBuf,KEntryAttNormal); - test_KErrNone(r); + test(r==KErrNone); dir.Close(); r=TheFs.GetDir(dirNameBuf,KEntryAttMatchMask,ESortByName,dirEntries); - test_KErrNone(r); + test(r==KErrNone); dirNameBuf.Zero(); delete dirEntries; //Private//falseID dirNameBuf=KPrivateFalseID; dirNameBuf[0]=(TText)gDriveToTest; r=dir.Open(TheFs,dirNameBuf,KEntryAttNormal); - test_KErrNone(r); + test(r==KErrNone); dir.Close(); r=TheFs.GetDir(dirNameBuf,KEntryAttMatchMask,ESortByName,dirEntries); - test_KErrNone(r); + test(r==KErrNone); dirNameBuf.Zero(); delete dirEntries; //Private dirNameBuf=KPrivatePath; dirNameBuf[0]=(TText)gDriveToTest; r=dir.Open(TheFs,dirNameBuf,KEntryAttNormal); - test_KErrNone(r); + test(r==KErrNone); dir.Close(); r=TheFs.GetDir(dirNameBuf,KEntryAttMatchMask,ESortByName,dirEntries); - test_KErrNone(r); + test(r==KErrNone); dirNameBuf.Zero(); delete dirEntries; //Private/uid @@ -662,19 +664,19 @@ dirNameBuf.Insert(0,_L("?:")); dirNameBuf[0]=(TText)gDriveToTest; r=dir.Open(TheFs,dirNameBuf,KEntryAttNormal); - test_KErrNone(r); + test(r==KErrNone); dir.Close(); r=TheFs.GetDir(dirNameBuf,KEntryAttMatchMask,ESortByName,dirEntries); - test_KErrNone(r); + test(r==KErrNone); dirNameBuf.Zero(); delete dirEntries; //Resource dirNameBuf=KResourcePath; dirNameBuf[0]=(TText)gDriveToTest; r=dir.Open(TheFs,dirNameBuf,KEntryAttNormal); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.GetDir(dirNameBuf,KEntryAttMatchMask,ESortByName,dirEntries); - test_KErrNone(r); + test(r==KErrNone); dir.Close(); delete dirEntries; } @@ -686,20 +688,20 @@ // { r=TheFs.FileSystemName(fsname,gTheDriveNum); - test_Value(r, r == KErrNone || r==KErrNotFound); + test(r==KErrNone || r==KErrNotFound); r=DismountFileSystem(TheFs, fsname,gTheDriveNum); - test_Value(r, r == KErrNone || r==KErrNotFound); + test(r==KErrNone || r==KErrNotFound); // r=TheFs.RemoveFileSystem(fsname); //can not test due to bug else where fix exists -// test_KErrNone(r); +// test(r==KErrNone); // r=TheFs.AddFileSystem(fsname); -// test_KErrNone(r); +// test(r==KErrNone); r=MountFileSystem(TheFs,fsname,gTheDriveNum); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.SetDriveName(gTheDriveNum,KDriveName); - test_KErrNone(r); + test(r==KErrNone); #ifndef __WINS__ r=TheFs.SetVolumeLabel(KVolLable, gTheDriveNum); - test_KErrNone(r); + test(r==KErrNone); #endif systemRFsTest(); @@ -725,11 +727,11 @@ test(aStat4==KErrNone); r=TheFs.SetSessionPath(systestname); - test_KErrNone(r); + test(r==KErrNone); //Test RRawDisk class r=rawdisk.Open(TheFs,gTheDriveNum); - test_KErrNone(r); + test(r==KErrNone); rawdisk.Close(); RDirtest(); @@ -740,21 +742,21 @@ { //Test RFormat class r=format.Open(TheFs,driveBuf,EHighDensity,count); - test_KErrNone(r); + test(r==KErrNone); while(count) { TInt r=format.Next(count); - test_KErrNone(r); + test(r==KErrNone); } format.Close(); } driveBuf[0]=(TText)gDriveToTest; r=TheFs.ScanDrive(driveBuf); - test_Value(r, r == KErrNone || r==KErrNotSupported); + test(r==KErrNone || r==KErrNotSupported); r=TheFs.CheckDisk(driveBuf); - test_Value(r, r == KErrNone || r==KErrNotSupported); + test(r==KErrNone || r==KErrNotSupported); } LOCAL_C void TestCaps() @@ -775,16 +777,16 @@ driveBuf[0]=(TText)gDriveToTest; r=TheFs.SessionPath(temp); - test_KErrNone(r); + test(r==KErrNone); test.Printf(_L("Session path: %S"),&temp); r=TheFs.CreatePrivatePath(gTheDriveNum); - test_Value(r, r == KErrNone || r== KErrAlreadyExists); + test(r==KErrNone || r== KErrAlreadyExists); TBuf<18> tempPri; r=TheFs.PrivatePath(tempPri); - test_KErrNone(r); + test(r==KErrNone); theprivatepath = _L("?:"); theprivatepath.Append(tempPri); @@ -793,9 +795,9 @@ TFileName thesessionpath; r=TheFs.SetSessionToPrivate(gTheDriveNum); - test_KErrNone(r); + test(r==KErrNone); r=TheFs.SessionPath(thesessionpath); - test_KErrNone(r); + test(r==KErrNone); test(thesessionpath == theprivatepath); } @@ -808,7 +810,7 @@ test.Next(_L("Delete test directory")); CFileMan* fMan=CFileMan::NewL(TheFs); TInt r=fMan->RmDir(gSessionPath); - test_Value(r, r == KErrNone || r == KErrPathNotFound); + test(r==KErrNone || KErrPathNotFound); delete fMan; } @@ -825,7 +827,7 @@ sesspath[0] = (TText)gDriveToTest; TInt r= TheFs.SetSessionPath(sesspath); - test_KErrNone(r); + test(r==KErrNone); //cleanup from previous run of this test TBuf<20> delDir; @@ -833,15 +835,15 @@ delDir=KResourcePath; delDir[0]=(TText)gDriveToTest; r=fMan->RmDir(delDir); - test_Value(r, r == KErrNone || r == KErrNotFound); + test(r==KErrNone || KErrNotFound); delDir=KSystemPath; delDir[0]=(TText)gDriveToTest; r=fMan->RmDir(delDir); - test_Value(r, r == KErrNone || r == KErrNotFound); + test(r==KErrNone || KErrNotFound); delDir=KPrivatePath; delDir[0]=(TText)gDriveToTest; r=fMan->RmDir(delDir); - test_Value(r, r == KErrNone || r == KErrNotFound); + test(r==KErrNone || KErrNotFound); delete fMan; //check double mode ie that Defpath still works @@ -849,30 +851,30 @@ RFs fs2; r=fs1.Connect(); - test_KErrNone(r); + test(r==KErrNone); r=fs1.SessionPath(sesspath); - test_KErrNone(r); + test(r==KErrNone); test.Printf(_L("session1 Path=%S"),&sesspath); TBuf<30> privatepath; r=fs1.SetSessionToPrivate(gTheDriveNum); - test_KErrNone(r); + test(r==KErrNone); r=fs1.PrivatePath(privatepath); - test_KErrNone(r); + test(r==KErrNone); r=privatepath.Compare(KExpectedPrivatePath()); - test_Value(r, r == 0); + test(r==0); r=fs1.SessionPath(sesspath); - test_KErrNone(r); + test(r==KErrNone); r=privatepath.Compare(sesspath.Mid(KPathPosition)); - test_Value(r, r == 0); + test(r==0); r=fs1.CreatePrivatePath(gTheDriveNum); - test_KErrNone(r); + test(r==KErrNone); fs1.Close(); r=fs2.Connect(); - test_KErrNone(r); + test(r==KErrNone); r=fs2.SessionPath(sesspath); - test_KErrNone(r); + test(r==KErrNone); test.Printf(_L("session2 Path=%S"),&sesspath); fs2.Close();