+ Sync time to prevent build failures when running on VirtualBox.
+
diff --git a/test/test.pl b/test/test.pl
index 954899938..6e91c7e2a 100755
--- a/test/test.pl
+++ b/test/test.pl
@@ -330,6 +330,14 @@ eval
################################################################################################################################
if (!defined($iVmId))
{
+ # Sync time to prevent build failures when running on VirtualBox.
+ my $strVBoxService = '/usr/sbin/VBoxService';
+
+ if ($oStorageTest->exists($strVBoxService))
+ {
+ executeTest("sudo ${strVBoxService} --timesync-set-start");
+ }
+
# Build CI configuration
if (!$bNoCiConfig)
{