Page MenuHomePhabricator

test failure after splitting
ActivePublic

Authored by demon on Nov 12 2014, 6:43 PM.
chad@notsexy /a/cdb/test (master)$ git diff
diff --git a/test/CdbTest.php b/test/CdbTest.php
index 920fc11..25ca668 100644
--- a/test/CdbTest.php
+++ b/test/CdbTest.php
@@ -65,6 +65,13 @@ class CdbTest extends \PHPUnit_Framework_TestCase {
'same hash'
);
+ return $data;
+ }
+
+ /**
+ * @depends testCdbWrite
+ */
+ public function testCdbRead( $data ) {
$r1 = new Reader\PHP( $this->phpCdbFile );
$r2 = new Reader\DBA( $this->dbaCdbFile );
chad@notsexy /a/cdb/test (master)$ ../vendor/phpunit/phpunit/phpunit .
PHPUnit 4.5-g247756f by Sebastian Bergmann.
.E
Time: 80 ms, Memory: 3.25Mb
There was 1 error:
1) Cdb\Test\CdbTest::testCdbRead
Cdb\Exception: Read from CDB file failed, file "/private/var/folders/_z/ggcjc6x96xb6nhs_sdpprhp00000gn/T/Cdb\Test\CdbTest_YirYSK" may be corrupted.
/a/cdb/src/Reader/PHP.php:128
/a/cdb/src/Reader/PHP.php:169
/a/cdb/src/Reader/PHP.php:217
/a/cdb/src/Reader/PHP.php:87
/a/cdb/test/CdbTest.php:83
FAILURES!
Tests: 2, Assertions: 1, Errors: 1.

Event Timeline

demon edited the content of this paste. (Show Details)Nov 12 2014, 6:43 PM
demon changed the title of this paste from untitled to test failure after splitting.
demon updated the paste's language from autodetect to autodetect.