Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
---
testbot/web/Stats.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testbot/web/Stats.pl b/testbot/web/Stats.pl
index 91106bbc8..4c213ab45 100644
--- a/testbot/web/Stats.pl
+++ b/testbot/web/Stats.pl
@@ -222,7 +222,7 @@ sub GenerateBody($)
print "<tr><td class='StatSeparator'>Activity</td><td colspan='2'><hr></td></tr>\n";
my $VMsStats = $Stats->{vms};
-…
[View More] _GenGlobalLine($VMsStats, "elapsed", "Activity history", "How far the activity records go. This is used for the VM and VM host tables.");
+ _GenGlobalLine($VMsStats, "elapsed", "Activity history", "How far back the activity records go. This is used for the VM and VM host tables.");
_GenGlobalLine($GlobalStats, "records.count", "Record count", "The number of activity records.");
print "</tbody></table></div>\n";
--
2.20.1
[View Less]
All VMs support it nowadays and having the current time is important not
only for the tests but also for builds (due to a ccache bug).
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
---
See also:
https://github.com/ccache/ccache/issues/480
testbot/bin/LibvirtTool.pl | 16 ++++++++++++++++
testbot/bin/WineRunTask.pl | 13 -------------
testbot/bin/WineRunWineTest.pl | 13 -------------
3 files changed, 16 insertions(+), 26 deletions(-)
diff --git a/testbot/bin/…
[View More]LibvirtTool.pl b/testbot/bin/LibvirtTool.pl
index d5901910c..127c15c5c 100755
--- a/testbot/bin/LibvirtTool.pl
+++ b/testbot/bin/LibvirtTool.pl
@@ -420,6 +420,22 @@ sub SetupTestAgentd($$$$)
# A side effect is that it will force TestAgentd.exe.old to stay around.
}
+ # Always update the guest's system time
+ # This is needed not only for the tests (date is important when checking
+ # HTTPS certificates), but also for the build (if the time moves forward
+ # during the build some ccache versions will return a compilation error).
+ if (!$TA->SetTime())
+ {
+ # Not a fatal error. Try the next port in case the VM runs a privileged
+ # TestAgentd daemon there.
+ my $PrivilegedTA = $VM->GetAgent(1);
+ if (!$PrivilegedTA->SetTime())
+ {
+ FatalError("Unable to set the VM system time: ". $PrivilegedTA->GetLastError() ."\n");
+ }
+ $PrivilegedTA->Disconnect();
+ }
+
if ($Booting and $VM->Type eq "wine")
{
# Make sure the X session has had time to start
diff --git a/testbot/bin/WineRunTask.pl b/testbot/bin/WineRunTask.pl
index c862ddd81..57535af18 100755
--- a/testbot/bin/WineRunTask.pl
+++ b/testbot/bin/WineRunTask.pl
@@ -433,19 +433,6 @@ my $Mission = $Missions->[0]->{Missions}->[0];
#
my $TA = $VM->GetAgent();
-Debug(Elapsed($Start), " Setting the time\n");
-if (!$TA->SetTime())
-{
- # Not a fatal error. Try the next port in case the VM runs a privileged
- # TestAgentd daemon there.
- my $PrivilegedTA = $VM->GetAgent("privileged");
- if (!$PrivilegedTA->SetTime())
- {
- LogTaskError("Unable to set the VM system time: ". $PrivilegedTA->GetLastError() .". Maybe the TestAgentd process is missing the required privileges.\n");
- $PrivilegedTA->Disconnect();
- }
-}
-
my $FileName = $Step->FileName;
Debug(Elapsed($Start), " Sending '". $Step->GetFullFileName() ."'\n");
if (!$TA->SendFile($Step->GetFullFileName(), $FileName, 0))
diff --git a/testbot/bin/WineRunWineTest.pl b/testbot/bin/WineRunWineTest.pl
index 4b66ee226..f837f9e38 100755
--- a/testbot/bin/WineRunWineTest.pl
+++ b/testbot/bin/WineRunWineTest.pl
@@ -432,19 +432,6 @@ $TaskMissions = $Missions->[0];
# Setup the VM
#
my $TA = $VM->GetAgent();
-Debug(Elapsed($Start), " Setting the time\n");
-if (!$TA->SetTime())
-{
- # Not a fatal error. Try the next port in case the VM runs a privileged
- # TestAgentd daemon there.
- my $PrivilegedTA = $VM->GetAgent(1);
- if (!$PrivilegedTA->SetTime())
- {
- LogTaskError("Unable to set the VM system time: ". $PrivilegedTA->GetLastError() .". Maybe the TestAgentd process is missing the required privileges.\n");
- $PrivilegedTA->Disconnect();
- }
-}
-
my $FileName = $Step->FileName;
if (defined $FileName)
{
--
2.20.1
[View Less]
Signed-off-by: Sven Baars <sven.wine(a)gmail.com>
---
What happened with the previous test was that on machines where it succeeded a file
was created with the name "actualuser@_user@http_[1]". This appears to be because
the file name is split on ":", and the space is replaced by "_". Now when we remove
"http://" CreateUrlCacheEntryW and CreateUrlCacheEntryA will actually create files
with different names (because of encoding differences), which means the test fails.
When we remove the "…
[View More]user@" (which would make sense since the file start with
"actualuser@user@" instead of just "user@") CreateUrlCacheEntryW fails with
ERROR_INVALID_PARAMETER. So I instead just changed it to not include the unicode
characters.
dlls/wininet/tests/urlcache.c | 22 ++--------------------
1 file changed, 2 insertions(+), 20 deletions(-)
diff --git a/dlls/wininet/tests/urlcache.c b/dlls/wininet/tests/urlcache.c
index c5e72ae82b..a38ed9bc5b 100644
--- a/dlls/wininet/tests/urlcache.c
+++ b/dlls/wininet/tests/urlcache.c
@@ -877,9 +877,8 @@ static void test_urlcacheW(void)
"", {0}, {0}
},
{
- 0, {'C','o','o','k','i','e',':',' ','u','s','e','r','@','h','t','t','p',
- ':','/','/','t',0x15b,0x107,'.','o','r','g','/',0},
- "Cookie: user@http://t\xc5\x9b\xc4\x87.org/", {0}, {0}
+ 0, {'C','o','o','k','i','e',':',' ','u','s','e','r','@','t','e','s','t','.','o','r','g','/',0},
+ "Cookie: user(a)test.org/", {0}, {0}
}
};
static const FILETIME filetime_zero;
@@ -893,24 +892,11 @@ static void test_urlcacheW(void)
return;
}
- if(ie10_cache) {
- if(!MultiByteToWideChar(CP_ACP, 0, urls[6].encoded_url, -1,
- urls[6].url, ARRAY_SIZE(urls[6].url)))
- urls[6].url[0] = 0;
-
- trace("converted url in test 6: %s\n", wine_dbgstr_w(urls[6].url));
- }
-
for(i=0; i<ARRAY_SIZE(urls); i++) {
INTERNET_CACHE_ENTRY_INFOA *entry_infoA;
INTERNET_CACHE_ENTRY_INFOW *entry_infoW;
DWORD size;
- if(!urls[i].url[0]) {
- win_skip("No UTF16 version of url (%d)\n", i);
- continue;
- }
-
SetLastError(0xdeadbeef);
ret = CreateUrlCacheEntryW(urls[i].url, 0, NULL, bufW, 0);
if(urls[i].err != 0) {
@@ -937,10 +923,6 @@ static void test_urlcacheW(void)
ret = GetUrlCacheEntryInfoA(urls[i].encoded_url, NULL, &size);
ok(!ret && GetLastError()==ERROR_INSUFFICIENT_BUFFER,
"%d) GetLastError() = %d\n", i, GetLastError());
- if(!ret && GetLastError()!=ERROR_INSUFFICIENT_BUFFER) {
- win_skip("ANSI version of url is incorrect\n");
- continue;
- }
entry_infoA = HeapAlloc(GetProcessHeap(), 0, size);
ret = GetUrlCacheEntryInfoA(urls[i].encoded_url, entry_infoA, &size);
ok(ret, "%d) GetUrlCacheEntryInfoA failed: %d\n", i, GetLastError());
--
2.17.1
[View Less]