Bug 233781 - Various fixes for test cases
Summary: Various fixes for test cases
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: Core (show other bugs)
Version: 1.6.1   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: 1.5.3   Edit
Assignee: AJDT-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-23 19:58 EDT by Andrew Eisenberg CLA
Modified: 2009-05-15 00:14 EDT (History)
1 user (show)

See Also:


Attachments
fixes some test cases (22.56 KB, patch)
2008-05-23 19:58 EDT, Andrew Eisenberg CLA
andrew.eisenberg: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Eisenberg CLA 2008-05-23 19:58:10 EDT
Created attachment 101836 [details]
fixes some test cases

Build ID: I20080502-0100

It seems that some test cases are failing on macs because of the way that jar file entries are specified (with a leading './' for each entry). 

I changed the export tests to look for two ways of looking up jar entries.

I also change the TestLogger class in the core tests plugin because it was sometimes throwing an NPE if certain tests were run stand alone.
Comment 1 Andrew Clement CLA 2008-05-25 21:16:08 EDT
I'll put these changes in - they don't seem to help with the windows failures I am also saying, but if they help on the Mac, that's good.

I still see these tests failing in UI tests everytime on my Windows setup
ExportPluginTest.testExportPluginAsZip
ExportPluginTest.testExportMinimalBundleAsZip
ExportPluginTest.testExportJavaBundleAsZip
ExportPluginTest.testExportPluginAsDir

ExportProductTest.testExportProduct

i will look into them whenever i get a chance...

iplog
Comment 2 Andrew Eisenberg CLA 2008-05-25 21:53:36 EDT
Hmmmm...my guess is that there is something with the pathnames of the zip files.  That they are all calculated differently in different operating systems.  I'll see if I can get this running on my windows box.