--- a/kerneltest/f32test/shostmassstorage/msman/test/t_msman.cpp Wed Dec 23 11:43:31 2009 +0000
+++ b/kerneltest/f32test/shostmassstorage/msman/test/t_msman.cpp Thu Jan 07 13:38:45 2010 +0200
@@ -20,6 +20,7 @@
#include <f32file.h>
#include <e32cons.h>
#include <e32debug.h>
+#define __E32TEST_EXTENSION__
#include <e32test.h>
#include "tmsprintdrive.h"
@@ -30,10 +31,20 @@
RTest test(_L("T_MSMAN"));
RFs fsSession;
-
+extern CMsDrive msDrive;
void DriveTestL()
{
+ test.Start(_L("Check USB drive attributes\n"));
+ TInt driveNumber = msDrive.DriveNumber();
+
+ // Check drive Info is USB Mass Storage
+ TDriveInfo driveInfo;
+ fsSession.Drive(driveInfo, driveNumber);
+
+ test_Equal(driveInfo.iConnectionBusType, EConnectionBusUsb);
+ test_Value(driveInfo.iDriveAtt & KDriveAttExternal, KDriveAttExternal);
+ test.End();
}