diff -r 000000000000 -r a41df078684a kerneltest/f32test/server/b_mtst.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/kerneltest/f32test/server/b_mtst.cpp Mon Oct 19 15:55:17 2009 +0100 @@ -0,0 +1,153 @@ +// Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of the License "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// f32test\server\b_mtst.cpp +// Tests file deleteing +// +// + +#include +#include +#include "t_server.h" + +RTest test(_L("B_MTST")); +//LOCAL_D RFs TheFs; + +const TInt nTimes=20; + +GLDEF_D RFile file1; +GLDEF_D RFile file2; +GLDEF_D RFile file3; +GLDEF_D RFile file4; +GLDEF_D RFile file5; +GLDEF_D TBuf8<0x200> buf; +GLDEF_D TBuf8<0x200> buf1; +GLDEF_D TBuf8<0x200> buf2; +GLDEF_D TBuf8<0x200> buf3; +GLDEF_D TBuf8<0x200> buf4; +GLDEF_D TBuf8<0x200> buf5; +GLDEF_D TFileName nameBuf1=_L("B_MTST File 1"); +GLDEF_D TFileName nameBuf2=_L("B_MTST File 2"); +GLDEF_D TFileName nameBuf3=_L("B_MTST File 3"); +GLDEF_D TFileName nameBuf4=_L("B_MTST File 4"); +GLDEF_D TFileName nameBuf5=_L("B_MTST File 5"); + +const TInt len1=163; +const TInt len2=31; +const TInt len3=271; +const TInt len4=128; +const TInt len5=14; + +LOCAL_C void checkPattern() + { + test.Printf(_L("Opening: %S\n"),&nameBuf1); + TInt r=file1.Open(TheFs,nameBuf1,EFileStream); + test(r==KErrNone); + test.Printf(_L("Opening: %S\n"),&nameBuf2); + r=file2.Open(TheFs,nameBuf2,EFileStream); + test(r==KErrNone); + test.Printf(_L("Checking test pattern...\n")); + for (TInt i=0 ; i