diff -r 35fb7dda225a -r fdfa12d9a47a omap3530/omap3530_drivers/spi/test/t_spi_client_m.cpp --- a/omap3530/omap3530_drivers/spi/test/t_spi_client_m.cpp Sat Nov 06 15:14:41 2010 +0000 +++ b/omap3530/omap3530_drivers/spi/test/t_spi_client_m.cpp Fri Nov 19 00:43:42 2010 +0000 @@ -69,10 +69,9 @@ void TestSynchronousOperation() { - test.Next(_L("TestSynchronousOperation()")); + test.Next(_L("TestSynchronousOperations:")); test.Next(_L("HalfDuplexSingleWrite()")); - while(1) TestError(testLdd.HalfDuplexSingleWrite()); test.Next(_L("HalfDuplexMultipleWrite()")); @@ -94,20 +93,34 @@ TestError(testLdd.FullDuplexMultiple()); } +void TestAsynchronousOperation() + { + test.Next(_L("Test_AsynchronousOperations:")); + + TRequestStatus status; + + test.Next(_L("HalfDuplexSingleWrite()")); + testLdd.HalfDuplexSingleWrite(status); + User::WaitForRequest(status); // wait for completion.. + if(status != KErrNone) + { + test.Printf(_L("Error was %d"), status.Int()); + test(EFalse); + } + + } TInt E32Main() { test.Title(); test.Start(_L("Testing SPI..")); - PrepareDriver(); TestSynchronousOperation(); + TestAsynchronousOperation(); ReleaseDriver(); - test.End(); - return KErrNone; }