Bug 221894 - Allow core.lrg to pass on Eclipse build server
Summary: Allow core.lrg to pass on Eclipse build server
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: Power PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard: Fixed in 1.0M6
Keywords: test
Depends on:
Blocks:
 
Reported: 2008-03-07 13:52 EST by Tom Ware CLA
Modified: 2022-06-09 10:22 EDT (History)
0 users

See Also:


Attachments
proposed fix (19.06 KB, patch)
2008-03-07 13:59 EST, Tom Ware CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Ware CLA 2008-03-07 13:52:44 EST
The Core LRG test model passes on the boxes used by most developers when running on MySQL.

The Eclipse build server has a different setup -

64 bit linux
IBM PPC VM

This affects how some tests work and how the installed MySQL works.

The following issues occur

1. Iterators iterate in a different order for Maps and Sets.  This exposed a bug in EclipseLink and several bugs in the EclispeLink tests.

- https://bugs.eclipse.org/bugs/show_bug.cgi?id=221530 
- Several Multiple Table tests in the mapping test model fail because they iterate through the tables in the wrong order.  This is because they alter the descriptors and do not reinitiailze them.

2. MySQL has different case sensitivity settings on this installation

- 1 test failed because we do an unnecessary case conversion for MySQL
- 2 tests failed because we issue SQL in lowercase and MySQL expects table names to be in upper case

3. A project class generation test that allows unicode to pass through the generation fails because our test criteria expects unicode to print a "?", but it does not on the ibm vm - likely because the test machine actually supports the unicode.
Comment 1 Tom Ware CLA 2008-03-07 13:59:16 EST
Created attachment 91917 [details]
proposed fix
Comment 2 Tom Ware CLA 2008-03-07 14:05:01 EST
Fix is attached

1. Make Multiple Table tests properly initialize descriptors
2a. Change IntegrityChecker to not always convert case on MySQL
2b. Change some data read tests to use upper case for SQL
3. Remove a non-unicode test because I cannot figure out a way to detect what the expected result is
Comment 3 Tom Ware CLA 2008-03-07 15:02:19 EST
Checked in:

Tested with Full Core LRG Run - no new tests added as these changes are made specifically to allow the current tests to run

Reviewed by Chris Delahunt
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:22:03 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink