Bug 127775 - Bug in JUnit test plugin: DebugTests.java
Summary: Bug in JUnit test plugin: DebugTests.java
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
: 127795 127796 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-02-14 11:42 EST by John Cortell CLA
Modified: 2020-09-04 15:24 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Cortell CLA 2006-02-14 11:42:17 EST
org.eclipse.cdt.debug.core.tests.DebugTests.setUp() calls

	ResourcesPlugin.getWorkspace().getDescription().setAutoBuilding(false);
	
Unless I'm mistaken, this statement has no real effect. getDescription() returns a modifiable copy. To affect a new description setting in the workspace, the code needs to call the workspace's setDescription() method.

Proposed fix:

   IWorkspaceDescription wsDescr = ResourcesPlugin.getWorkspace().getDescription();
   wsDescr.setAutoBuilding(false);
   ResourcesPlugin.getWorkspace().setDescription(wsDescr);

This seems to produce the expected runtime behavior. With the previous logic, the project begins building as soon as it is created, rather than when 

	m_testProject.getProject().build(...)
	
is called in setUp()
Comment 1 Nobody - feel free to take it CLA 2006-02-14 11:59:24 EST
John, current JUnit tests are obsolete and as far as I know are meanningless. We need to develop a completely new test sets.
Comment 2 Marc-André Laperle CLA 2013-09-07 11:36:19 EDT
*** Bug 127795 has been marked as a duplicate of this bug. ***
Comment 3 Marc-André Laperle CLA 2013-09-07 11:36:37 EDT
*** Bug 127796 has been marked as a duplicate of this bug. ***