Author: tim.bunce
Date: Tue Jun 23 13:33:57 2009
New Revision: 780

Added:
    trunk/t/zzz.t
Modified:
    trunk/Changes
    trunk/MANIFEST
    trunk/lib/Devel/NYTProf.pm
    trunk/t/00-load.t

Log:
Added test diag warning for people running on xen, due to it being a  
regular factor in test failures:
http://www.nntp.perl.org/group/perl.cpan.testers/2009/06/msg4246803.html
Added note to docs and Changes re Joshua's NYTPROF env var parsing changes.


Modified: trunk/Changes
==============================================================================
--- trunk/Changes       (original)
+++ trunk/Changes       Tue Jun 23 13:33:57 2009
@@ -16,6 +16,8 @@

    Changed enable_profile() to discard the time spent since
      profile was disabled.
+  Changed NYTPROF env var parsing to allow backslash to escape
+    colons, for Windows, thanks to Joshua ben Jore.

    Added license, homepage, bugtracker, repository and MailingList
      resources to META.yml thanks to Michael G Schwern.

Modified: trunk/MANIFEST
==============================================================================
--- trunk/MANIFEST      (original)
+++ trunk/MANIFEST      Tue Jun 23 13:33:57 2009
@@ -150,6 +150,7 @@
  t/test80-recurs.p
  t/test80-recurs.rdt
  t/test80-recurs.t
+t/zzz.t
  typemap
  xt/test23-strevalxs.p
  xt/test23-strevalxs.rdt

Modified: trunk/lib/Devel/NYTProf.pm
==============================================================================
--- trunk/lib/Devel/NYTProf.pm  (original)
+++ trunk/lib/Devel/NYTProf.pm  Tue Jun 23 13:33:57 2009
@@ -261,6 +261,9 @@

    export NYTPROF=trace=2:start=init:file=/tmp/nytprof.out

+Any colon or equal characters in a value can be escaped by preceeding them  
with
+a backslash.
+
  =head2 addpid=1

  Append the current process id to the end of the filename.

Modified: trunk/t/00-load.t
==============================================================================
--- trunk/t/00-load.t   (original)
+++ trunk/t/00-load.t   Tue Jun 23 13:33:57 2009
@@ -2,6 +2,10 @@

  use Config;

+# we note the time in the test log here (the first test) and in t/zzz.t
+# so we can judge how fast the set of tests ran and this the rough speed  
of the system
+diag("Tests started at ". localtime(time));
+
  use_ok( 'Devel::NYTProf::Core' );

  diag( "Testing Devel::NYTProf $Devel::NYTProf::Core::VERSION on perl $]  
$Config{archname}" );
@@ -9,3 +13,10 @@
  use_ok( 'Devel::NYTProf::Constants', qw(NYTP_DEFAULT_COMPRESSION) );

  diag( sprintf "default compression level is %d",  
NYTP_DEFAULT_COMPRESSION() );
+
+if ("$Config{archname} $Config{osvers}" =~ /\b xen \b/x) {
+    diag("It looks like this is running inside a Xen virtual machine.");
+    diag("Operating system clocks are typically unstable in this  
situation,");
+    diag("so tests may fail or produce odd warnings.");
+    diag("Use of NYTProf inside a virtual machine is not recommended.");
+}

Added: trunk/t/zzz.t
==============================================================================
--- (empty file)
+++ trunk/t/zzz.t       Tue Jun 23 13:33:57 2009
@@ -0,0 +1,7 @@
+use Test::More qw(no_plan);
+
+pass();
+
+# we note the time in the test log here (the first test) and in t/zzz.t
+# so we can judge how fast the set of tests ran and this the rough speed  
of the system
+diag("Tests ended at ". localtime(time));

--~--~---------~--~----~------------~-------~--~----~
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