Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 352280

Summary: Extract function test failure
Product: [Tools] CDT Reporter: Marc-AndrĂ© Laperle <malaperle>
Component: cdt-refactoringAssignee: Project Inbox <cdt-refactoring-inbox>
Status: CLOSED DUPLICATE QA Contact: Emanuel Graf <emanuel>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 8.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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 ***