Title: [90481] trunk/Tools
- Revision
- 90481
- Author
- [email protected]
- Date
- 2011-07-06 12:21:24 -0700 (Wed, 06 Jul 2011)
Log Message
2011-07-06 Gustavo Noronha Silva <[email protected]>
Run an Xvfb instance to run the API tests on, like we do for the
layout tests.
Reviewed by Xan Lopez.
* Scripts/run-gtk-tests:
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (90480 => 90481)
--- trunk/Tools/ChangeLog 2011-07-06 19:10:25 UTC (rev 90480)
+++ trunk/Tools/ChangeLog 2011-07-06 19:21:24 UTC (rev 90481)
@@ -1,3 +1,12 @@
+2011-07-06 Gustavo Noronha Silva <[email protected]>
+
+ Run an Xvfb instance to run the API tests on, like we do for the
+ layout tests.
+
+ Reviewed by Xan Lopez.
+
+ * Scripts/run-gtk-tests:
+
2011-07-06 Daniel Bates <[email protected]>
Make SCM unit tests faster
Modified: trunk/Tools/Scripts/run-gtk-tests (90480 => 90481)
--- trunk/Tools/Scripts/run-gtk-tests 2011-07-06 19:10:25 UTC (rev 90480)
+++ trunk/Tools/Scripts/run-gtk-tests 2011-07-06 19:21:24 UTC (rev 90481)
@@ -33,6 +33,17 @@
die "ERROR: tests not found in $productDir.\n";
}
+my $pid = fork();
+if ($pid == 0) {
+ exec("Xvfb :31 -screen 0 800x600x24 -nolisten tcp > /dev/null 2>&1");
+ exit 1;
+} elsif ($pid == -1) {
+ print "Failed to fork Xvfb.";
+ exit 1;
+}
+
+$ENV{"DISPLAY"} = ':31';
+
my $exitStatus = 0;
foreach my $unitTest (@unitTests)
{
@@ -42,6 +53,8 @@
}
}
+kill 9, $pid unless $pid <= 0;
+
if ($exitStatus) {
print "Tests failed\n";
exit $exitStatus;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes