Fix tests

This commit is contained in:
Elias Naur 2005-01-18 19:22:43 +00:00
parent 89074eafa2
commit 87ce7a85af
2 changed files with 1 additions and 23 deletions

View file

@ -57,7 +57,6 @@ public class SysTest {
testAlert();
testDebug();
testTimer();
testPriority();
testUrl();
testClipboard();
}
@ -101,24 +100,6 @@ public class SysTest {
System.out.println("---- Test Timer ----\n");
}
/**
* Tests the priority
*/
private void testPriority() {
System.out.println("==== Test Priority ====");
busyWait(Sys.LOW_PRIORITY, 5, "Busy waiting in low priority...");
busyWait(Sys.NORMAL_PRIORITY, 5, "Busy waiting in normal priority...");
busyWait(Sys.HIGH_PRIORITY, 5, "Busy waiting in high priority...");
busyWait(Sys.REALTIME_PRIORITY, 5, "Busy waiting in realtime priority (may lag the computer!)...");
// reset
System.out.println("Resetting to normal");
Sys.setProcessPriority(Sys.NORMAL_PRIORITY);
System.out.println("---- Test Priority ----\n");
}
/**
* Tests the alert
*/
@ -154,7 +135,6 @@ public class SysTest {
long future = Sys.getTime() + (Sys.getTimerResolution() * seconds);
System.out.print(message);
Sys.setProcessPriority(priority);
// waste some cycles
while (Sys.getTime() < future) {

View file

@ -136,8 +136,6 @@ public class SyncTest {
// if we have a module - get going
if (module != null) {
// high priority... - might otherwise skip
Sys.setProcessPriority(Sys.HIGH_PRIORITY);
// go go go!
run();
@ -258,4 +256,4 @@ public class SyncTest {
FSound.FSOUND_Close();
FMOD.destroy();
}
}
}