Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352280 - Extract function test failure
Summary: Extract function test failure
Status: CLOSED DUPLICATE of bug 241717
Alias: None
Product: CDT
Classification: Tools
Component: cdt-refactoring (show other bugs)
Version: 8.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Emanuel Graf CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-17 00:48 EDT by Marc-André Laperle CLA
Modified: 2011-09-19 16:04 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc-André Laperle CLA 2011-07-17 00:48:25 EDT
org.eclipse.cdt.ui.tests.refactoring.extractfunction.ExtractFunctionRefactoringTest.Bug 241717: Typdef causes void as return type (from ExtractFunctionRefactoringTest)

null expected:<...st::~Test() { }  Ret[]Type Test::exp() {  ...> but was:<...st::~Test() { }  Ret[Value]Type Test::exp() {  ...>
Stacktrace
junit.framework.ComparisonFailure: null expected:<...st::~Test() {
}

Ret[]Type Test::exp()
{
 ...> but was:<...st::~Test() {
}

Ret[Value]Type Test::exp()
{
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:81)
	at junit.framework.Assert.assertEquals(Assert.java:87)
	at org.eclipse.cdt.ui.tests.refactoring.RefactoringBaseTest.compareFiles(RefactoringBaseTest.java:73)
	at org.eclipse.cdt.ui.tests.refactoring.extractfunction.ExtractFunctionRefactoringTest.executeRefactoring(ExtractFunctionRefactoringTest.java:74)
	at org.eclipse.cdt.ui.tests.refactoring.extractfunction.ExtractFunctionRefactoringTest.runTest(ExtractFunctionRefactoringTest.java:65)
	at junit.framework.TestCase.runBare(TestCase.java:134)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:243)
	at junit.framework.TestSuite.run(TestSuite.java:238)
	at junit.framework.TestSuite.runTest(TestSuite.java:243)
	at junit.framework.TestSuite.run(TestSuite.java:238)
	at junit.framework.TestSuite.runTest(TestSuite.java:243)

I believe this test started to fail after bug 350345 was fixed (f50bbd18197cdc69a36a7b36169708e7d21699e5).
Comment 1 Doug Schaefer CLA 2011-09-19 16:04:01 EDT

*** This bug has been marked as a duplicate of bug 241717 ***