Author: cwittich
Date: Sun Aug 9 19:25:27 2009
New Revision: 42568
URL: http://svn.reactos.org/svn/reactos?rev=42568&view=rev
Log:
always wait after killing a vm
Modified:
trunk/tools/sysreg2/virt.c
Modified: trunk/tools/sysreg2/virt.c
URL: http://svn.reactos.org/svn/reactos/trunk/tools/sysreg2/virt.c?rev=42568&r1=…
==============================================================================
--- trunk/tools/sysreg2/virt.c [iso-8859-1] (original)
+++ trunk/tools/sysreg2/virt.c [iso-8859-1] Sun Aug 9 19:25:27 2009
@@ -178,6 +178,7 @@
/* SysregPrintf("Error: Virtual Machine is already running.\n");
goto cleanup; */
system("virsh destroy ReactOS");
+ usleep(1000);
}
/* If the HD image already exists, delete it */
@@ -228,7 +229,7 @@
virDomainUndefine(vDom);
virDomainFree(vDom);
- sleep(1);
+ usleep(1000);
/* If we have a checkpoint to reach for success, assume that
the application used for running the tests (probably "rosautotest")
Author: cwittich
Date: Sun Aug 9 18:50:16 2009
New Revision: 42567
URL: http://svn.reactos.org/svn/reactos?rev=42567&view=rev
Log:
wait after killing the vm to give libvirt a chance to release resources
Modified:
trunk/tools/sysreg2/console.c
trunk/tools/sysreg2/virt.c
Modified: trunk/tools/sysreg2/console.c
URL: http://svn.reactos.org/svn/reactos/trunk/tools/sysreg2/console.c?rev=42567&…
==============================================================================
--- trunk/tools/sysreg2/console.c [iso-8859-1] (original)
+++ trunk/tools/sysreg2/console.c [iso-8859-1] Sun Aug 9 18:50:16 2009
@@ -160,7 +160,7 @@
}
/* Output the line, raddr2line the included addresses if necessary */
- if (ResolveAddressFromFile(Raddr2LineBuffer, BUFFER_SIZE, Buffer))
+ if ((KdbgHit == 1) && (ResolveAddressFromFile(Raddr2LineBuffer, BUFFER_SIZE, Buffer)))
printf("%s", Raddr2LineBuffer);
else
printf("%s", Buffer);
Modified: trunk/tools/sysreg2/virt.c
URL: http://svn.reactos.org/svn/reactos/trunk/tools/sysreg2/virt.c?rev=42567&r1=…
==============================================================================
--- trunk/tools/sysreg2/virt.c [iso-8859-1] (original)
+++ trunk/tools/sysreg2/virt.c [iso-8859-1] Sun Aug 9 18:50:16 2009
@@ -228,6 +228,8 @@
virDomainUndefine(vDom);
virDomainFree(vDom);
+ sleep(1);
+
/* If we have a checkpoint to reach for success, assume that
the application used for running the tests (probably "rosautotest")
continues with the next test after a VM restart. */