Changeset 56636 in vbox
- Timestamp:
- Jun 25, 2015 11:31:10 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 101270
- Location:
- trunk/src/VBox/Main/glue/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/glue/tests/TestVBox.java
r56625 r56636 73 73 es.eventProcessed(listener, ev); 74 74 } 75 // process system event queue 75 76 mgr.waitForEvents(0); 76 77 } … … 116 117 } 117 118 } 119 // process system event queue 118 120 mgr.waitForEvents(0); 119 121 } … … 124 126 while (!p.getCompleted()) 125 127 { 128 // process system event queue 126 129 mgr.waitForEvents(0); 130 // wait for completion of the task, but at most 200 msecs 127 131 p.waitForCompletion(200); 128 132 if (System.currentTimeMillis() >= end) … … 142 146 progressBar(mgr, p, 10000); 143 147 session.unlockMachine(); 148 // process system event queue 144 149 mgr.waitForEvents(0); 145 150 } … … 166 171 session1.unlockMachine(); 167 172 session2.unlockMachine(); 173 // process system event queue 168 174 mgr1.waitForEvents(0); 169 175 mgr2.waitForEvents(0); … … 188 194 off += buf.length; 189 195 } 196 // process system event queue 190 197 mgr.waitForEvents(0); 191 198 } … … 271 278 } 272 279 280 // process system event queue 273 281 mgr.waitForEvents(0); 274 282 if (ws) -
trunk/src/VBox/Main/glue/tests/TestVBoxNATEngine.java
r45186 r56636 5 5 6 6 /* 7 * Copyright (C) 2013 Oracle Corporation7 * Copyright (C) 2013-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 15 15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 16 16 */ 17 import org.virtualbox_ 4_3.*;17 import org.virtualbox_5_0.*; 18 18 import java.util.List; 19 19 import java.util.Arrays; … … 85 85 inaccessible = true; 86 86 } 87 88 // process system event queue 89 mgr.waitForEvents(0); 87 90 } 88 91 … … 91 94 System.out.println("\nAttempting to start VM '" + vm.getName() + "'"); 92 95 mgr.startVm(vm.getName(), null, 7000); 96 // process system event queue 97 mgr.waitForEvents(0); 93 98 } 94 99 … … 152 157 testEnumeration(mgr, vbox, vm); 153 158 testStart(mgr, vbox, vm); 154 //testEvents(mgr, vbox.getEventSource());155 159 } 156 160 System.out.println("done, press Enter..."); … … 167 171 e.printStackTrace(); 168 172 } 173 174 // process system event queue 175 mgr.waitForEvents(0); 169 176 170 177 if (ws)
Note:
See TracChangeset
for help on using the changeset viewer.