<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,55 +5,56 @@ BEGIN {
         chdir 't';
         @INC = '../lib';
     }
+    else {
+        unshift @INC, 't/lib';
+    }
 }
 
-# Can't use Test.pm, that's a 5.005 thing.
-package My::Test;
-
-# This has to be a require or else the END block below runs before
-# Test::Builder's own and the ending diagnostics don't come out right.
-require Test::Builder;
-my $TB = Test::Builder-&gt;create;
-$TB-&gt;plan(tests =&gt; 2);
+use strict;
 
+use Test::Builder;
+use Test::Builder::NoOutput;
+use Test::Simple;
 
-package main;
+my $TB   = Test::Builder-&gt;new;
+my $test = Test::Builder::NoOutput-&gt;create;
+$test-&gt;plan( tests =&gt; 3 );
 
-require Test::Simple;
-
-chdir 't';
-push @INC, '../t/lib/';
-require Test::Simple::Catch;
-my($out, $err) = Test::Simple::Catch::caught();
 local $ENV{HARNESS_ACTIVE} = 0;
 
-Test::Simple-&gt;import(tests =&gt; 3);
-
-#line 30
-ok(1, 'Foo');
-ok(0, 'Bar');
-ok(1, 'Yar');
-ok(1, 'Car');
-ok(0, 'Sar');
-
-END {
-    $TB-&gt;is_eq($$out, &lt;&lt;OUT);
+$test-&gt;ok(1, 'Foo');
+$TB-&gt;is_eq($test-&gt;read(), &lt;&lt;END);
 1..3
 ok 1 - Foo
+END
+
+#line 30
+$test-&gt;ok(0, 'Bar');
+$TB-&gt;is_eq($test-&gt;read(), &lt;&lt;END);
 not ok 2 - Bar
+#   Failed test 'Bar'
+#   at $0 line 30.
+END
+
+$test-&gt;ok(1, 'Yar');
+$test-&gt;ok(1, 'Car');
+$TB-&gt;is_eq($test-&gt;read(), &lt;&lt;END);
 ok 3 - Yar
 ok 4 - Car
-not ok 5 - Sar
-OUT
+END
 
-    $TB-&gt;is_eq($$err, &lt;&lt;ERR);
-#   Failed test 'Bar'
-#   at $0 line 31.
+#line 45
+$test-&gt;ok(0, 'Sar');
+$TB-&gt;is_eq($test-&gt;read(), &lt;&lt;END);
+not ok 5 - Sar
 #   Failed test 'Sar'
-#   at $0 line 34.
+#   at $0 line 45.
+END
+
+$test-&gt;_ending();
+$TB-&gt;is_eq($test-&gt;read(), &lt;&lt;END);
 # Looks like you planned 3 tests but ran 5.
 # Looks like you failed 2 tests of 5 run.
-ERR
+END
 
-    exit 0;
-}
+$TB-&gt;done_testing(5);</diff>
      <filename>t/extra.t</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8e6a732011b11215cb65e52e73e1ae4a87594fc0</id>
    </parent>
  </parents>
  <author>
    <name>Michael G. Schwern</name>
    <email>schwern@pobox.com</email>
  </author>
  <url>http://github.com/schwern/test-more/commit/c360d86a5d7bef0f0b003445e3ab853e0424e267</url>
  <id>c360d86a5d7bef0f0b003445e3ab853e0424e267</id>
  <committed-date>2009-09-15T15:59:53-07:00</committed-date>
  <authored-date>2009-09-15T15:59:53-07:00</authored-date>
  <message>Rewrite extra.t to use TB::NoOutput and generally be more sane.

Conflicts:

	t/extra.t</message>
  <tree>da097440f7bd452087fc0979b8376aafc82bb0be</tree>
  <committer>
    <name>Michael G. Schwern</name>
    <email>schwern@pobox.com</email>
  </committer>
</commit>
