Don't fail with InterruptedException in these tests
authorEd Swartz <ed.swartz@nokia.com>
Wed, 15 Sep 2010 16:54:04 -0500
changeset 2017 3155bf88e8d1
parent 2016 e77c83f0c75a
child 2018 5034d483c2e2
Don't fail with InterruptedException in these tests
project/com.nokia.carbide.cpp.epoc.engine.tests/src/com/nokia/carbide/cpp/epoc/engine/tests/model/TestViewDataCache.java
--- a/project/com.nokia.carbide.cpp.epoc.engine.tests/src/com/nokia/carbide/cpp/epoc/engine/tests/model/TestViewDataCache.java	Wed Sep 15 14:53:50 2010 -0500
+++ b/project/com.nokia.carbide.cpp.epoc.engine.tests/src/com/nokia/carbide/cpp/epoc/engine/tests/model/TestViewDataCache.java	Wed Sep 15 16:54:04 2010 -0500
@@ -459,7 +459,10 @@
 		b.start();
 		
 		while (System.currentTimeMillis() < timeout) {
-			Thread.sleep(100);
+			try {
+				Thread.sleep(100);
+			} catch (InterruptedException e) {
+			}
 		}
 		
 		a.interrupt();
@@ -526,7 +529,10 @@
 			b.start();
 			
 			while (System.currentTimeMillis() < timeout) {
-				Thread.sleep(100);
+				try {
+					Thread.sleep(100);
+				} catch (InterruptedException e) {
+				}
 			}
 			
 			a.interrupt();
@@ -606,7 +612,11 @@
 			b.start();
 			
 			while (System.currentTimeMillis() < timeout) {
-				Thread.sleep(100);
+				try {
+					Thread.sleep(100);
+				} catch (InterruptedException e) {
+					
+				}
 			}
 			
 			a.interrupt();