From: Alan H. <min...@us...> - 2006-03-29 20:46:46
|
Update of /cvsroot/gallery/gallery2/modules/dcraw/test/phpunit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13971/modules/dcraw/test/phpunit Modified Files: DcrawToolkitTest.class Log Message: Fix bug 1400106 - Set default umask of 022 in UnixPlatform::exec instead of a umask to get desired file permissions; this umask caused problems with dir permissions when unzipping files, even making dirs that unzip then could not write files into. - Added GalleryPlatform::recursiveChmod for archiveextract to use instead of recursiveFixDirPermissions (now deprecated); core API 7.3 - It is now the responsibility of exec'ers to chmod output files to the system preference.. added this for netpbm, ffmpeg, dcraw, zipcart. - Updated unit tests accordingly. Index: DcrawToolkitTest.class =================================================================== RCS file: /cvsroot/gallery/gallery2/modules/dcraw/test/phpunit/DcrawToolkitTest.class,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- DcrawToolkitTest.class 10 Jan 2006 04:39:44 -0000 1.8 +++ DcrawToolkitTest.class 29 Mar 2006 20:46:41 -0000 1.9 @@ -85,6 +85,7 @@ array('/usr/bin/dcraw', '-c', '-a', '-q', 'INPUTFILE', '>', 'TEMPFILE'))), array(1, '')); $this->_platform->setReply('rename', array('TEMPFILE', 'OUTPUTFILE'), 1); + $this->_platform->setReply('chmod', array('OUTPUTFILE', null), 1); list ($ret, $outputMimeType, $context) = $this->_toolkit->performOperation( 'image/x-dcraw', 'convert-to-image/x-portable-pixmap', @@ -103,6 +104,7 @@ array('/usr/bin/dcraw', '-c', '-a', '-q', '0', 'INPUTFILE', '>', 'TEMPFILE'))), array(1, '')); $this->_platform->setReply('rename', array('TEMPFILE', 'OUTPUTFILE'), 1); + $this->_platform->setReply('chmod', array('OUTPUTFILE', null), 1); list ($ret, $outputMimeType, $context) = $this->_toolkit->performOperation( 'image/x-dcraw', 'convert-to-image/x-portable-pixmap', |