diff options
Diffstat (limited to 'gcc-4.6/libjava/testsuite/libjava.lang/Thread_Sleep.java')
| -rw-r--r-- | gcc-4.6/libjava/testsuite/libjava.lang/Thread_Sleep.java | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/gcc-4.6/libjava/testsuite/libjava.lang/Thread_Sleep.java b/gcc-4.6/libjava/testsuite/libjava.lang/Thread_Sleep.java deleted file mode 100644 index 7220a6a3a..000000000 --- a/gcc-4.6/libjava/testsuite/libjava.lang/Thread_Sleep.java +++ /dev/null @@ -1,23 +0,0 @@ -// Test that Thread.sleep() works. - -public class Thread_Sleep -{ - public static void main(String args[]) - { - try - { - long start = System.currentTimeMillis(); - System.out.println("sleeping"); - Thread.sleep(50); - long end = System.currentTimeMillis(); - if ((end - start) < 50) - System.out.println ("failed"); - else - System.out.println("ok"); - } - catch (InterruptedException x) - { - System.out.println("error: Thread interrupted."); - } - } -} |
