#1598: Doctrine_Migration_Diff_TestCase - Couldn't write file /tmpfrom...
-----------------------------------+----------------------------------------
 Reporter:  adrive                 |       Owner:  jwage  
     Type:  defect                 |      Status:  new    
 Priority:  minor                  |   Milestone:  Unknown
Component:  Attributes             |     Version:  1.0.3  
 Keywords:                         |    Has_test:  0      
 Mystatus:  Pending Core Response  |   Has_patch:  1      
-----------------------------------+----------------------------------------
 When I run all test cases I got this exception:
 {{{
 Unexpected Doctrine_Import_Builder_Exception thrown in
 [Doctrine_Migration_Diff_TestCase] with message [Couldn't write file
 /tmpfromprfx_doctrine_tmp_dirs/generated/FromPrfxBaseUser.php] in
 /www/dev/doctrine-1.1/lib/Doctrine/Import/Builder.php on line 1143

 Trace
 -------------

 #0 /www/dev/doctrine-1.1/lib/Doctrine/Import/Builder.php(999):
 Doctrine_Import_Builder->writeDefinition(Array)
 #1 /www/dev/doctrine-1.1/lib/Doctrine/Import/Schema.php(270):
 Doctrine_Import_Builder->buildRecord(Array)
 #2 /www/dev/doctrine-1.1/lib/Doctrine.php(741):
 Doctrine_Import_Schema->importSchema('/www/dev/doctri...', 'yml',
 '/tmpfromprfx_do...')
 #3 /www/dev/doctrine-1.1/lib/Doctrine/Migration/Diff.php(295):
 Doctrine::generateModelsFromYaml('/www/dev/doctri...',
 '/tmpfromprfx_do...', Array)
 #4 /www/dev/doctrine-1.1/lib/Doctrine/Migration/Diff.php(94):
 Doctrine_Migration_Diff->_generateModels('FromPrfx', '/www/dev/doctri...')
 #5 /www/dev/doctrine-1.1/tests/Migration/DiffTestCase.php(43):
 Doctrine_Migration_Diff->generateChanges()
 #6 /www/dev/doctrine-1.1/tests/DoctrineTest/UnitTestCase.php(131):
 Doctrine_Migration_Diff_TestCase->testTest()
 #7 /www/dev/doctrine-1.1/tests/DoctrineTest/GroupTest.php(49):
 UnitTestCase->run()
 #8 /www/dev/doctrine-1.1/tests/DoctrineTest.php(170):
 GroupTest->run(Object(DoctrineTest_Reporter_Cli), '')
 #9 /www/dev/doctrine-1.1/tests/run.php(312): DoctrineTest->run()
 #10 {main}
 }}}
 It's due to missing DIRECTORY_SEPARATOR after sys_get_temp_dir() function.

 This function returns the path of temp directory without `/` at the end of
 path on Linux machines (at least Debian) and I try it on one windows
 machine and it returns the path with `\`.

 I think that two \\ in the path on windows can't break anything.

-- 
Ticket URL: <http://trac.doctrine-project.org/ticket/1598>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"doctrine-svn" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to