Revision: 1255
Author: [email protected]
Date: Sun May 30 08:16:28 2010
Log: Make the xen warnings stand out more.

http://code.google.com/p/perl-devel-nytprof/source/detail?r=1255

Modified:
 /trunk/t/00-load.t

=======================================
--- /trunk/t/00-load.t  Wed Feb 24 06:48:26 2010
+++ /trunk/t/00-load.t  Sun May 30 08:16:28 2010
@@ -22,10 +22,13 @@
         d_gettimeod d_sysconf
     );

-if ("$Config{archname} $Config{osvers}" =~ /\b xen \b/x) {
+if ("$Config{archname} $Config{osvers}" =~ /\b xen \b/x
+    or -d "/proc/xen" # maybe
+) {
+    diag("------------------------");
     diag("--- Xen platform issues:");
     diag("It looks like this is running inside a Xen virtual machine.");
-    diag("Operating system clocks may be unstable in this situation,");
+ diag("Operating system clocks may appear to be unstable in this situation,");
     diag("so tests may fail or produce odd warnings.");
diag("See results from http://www.google.com/search?q=xen+clock+backwards";);
     diag("Including https://bugs.launchpad.net/xen/+bug/146924";);
@@ -33,6 +36,7 @@
     diag("And http://rhn.redhat.com/errata/RHSA-2009-1243.html";);
     diag("In short, you may need to upgrade Xen and/or your OS.");
diag("Note that use of NYTProf inside a virtual machine is likely to affect accuracy anyway.");
+    diag("------------------------");
 }

 my @env = grep { /^NYTPROF/ } sort keys %ENV;

--
You've received this message because you are subscribed to
the Devel::NYTProf Development User group.

Group hosted at:  http://groups.google.com/group/develnytprof-dev
Project hosted at:  http://perl-devel-nytprof.googlecode.com
CPAN distribution:  http://search.cpan.org/dist/Devel-NYTProf

To post, email:  [email protected]
To unsubscribe, email:  [email protected]

Reply via email to