Revert "Add some more checks to the TestIsolate testlet"

This commit is contained in:
Myk Melez 2015-07-02 04:19:42 -07:00
Родитель 90daa7b544
Коммит 219365cddd
1 изменённых файлов: 1 добавлений и 13 удалений

Просмотреть файл

@ -5,7 +5,7 @@ import com.sun.cldc.isolate.*;
import gnu.testlet.vm.IsolatedClass;
public class TestIsolate implements Testlet {
public int getExpectedPass() { return 10; }
public int getExpectedPass() { return 4; }
public int getExpectedFail() { return 0; }
public int getExpectedKnownFail() { return 0; }
public void test(TestHarness th) {
@ -16,23 +16,11 @@ public class TestIsolate implements Testlet {
th.check(c.val, 2);
th.check(IsolatedClass.val, 2);
Isolate[] isolates = Isolate.getIsolates();
th.check(isolates.length, 1);
th.check(isolates[0].id(), Isolate.currentIsolate().id());
try {
Isolate iso = new Isolate("gnu.testlet.vm.IsolatedClass", new String[] { "5" });
iso.start();
isolates = Isolate.getIsolates();
th.check(isolates.length, 2);
th.check(isolates[0].id(), Isolate.currentIsolate().id());
th.check(isolates[1].id(), iso.id());
iso.waitForExit();
th.check(IsolatedClass.val, 2);
th.check(iso.isTerminated());
} catch(Exception e) {
th.fail("Unexpected exception: " + e.getMessage());
}