Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P69
test failure after splitting
Active
Public
Actions
Authored by
•
demon
on Nov 12 2014, 6:43 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F787: test_failure_after_splitting
Nov 12 2014, 6:43 PM
2014-11-12 18:43:30 (UTC+0)
Subscribers
None
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
2014-11-12 18:43:30 (UTC+0)
•
demon
changed the title of this paste from untitled to
test failure after splitting
.
•
demon
updated the paste's language from
autodetect
to
autodetect
.
•
bzimport
mentioned this in
T59531: internal_api_error_MWException on test.wikidata.org
.
Nov 22 2014, 2:15 AM
2014-11-22 02:15:25 (UTC+0)
Lydia_Pintscher
mentioned this in
T277551: [Curious Facts] improvements to issue descriptions
.
Mar 16 2021, 4:13 PM
2021-03-16 16:13:35 (UTC+0)
Log In to Comment