Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2010-03-08 17:13:04 +0000
committerDarin Wright2010-03-08 17:13:04 +0000
commit966be35bc01112886863f27b7c4eceeea1e10fc1 (patch)
tree142add731d14f39d93286d78e17b7d4fd88a9e74 /org.eclipse.debug.tests
parent8c1fc8cfb8847c9bd64786d35e27232657b16d22 (diff)
downloadeclipse.platform.debug-966be35bc01112886863f27b7c4eceeea1e10fc1.tar.gz
eclipse.platform.debug-966be35bc01112886863f27b7c4eceeea1e10fc1.tar.xz
eclipse.platform.debug-966be35bc01112886863f27b7c4eceeea1e10fc1.zip
Bug 275741 - [launching] LaunchConfigurationWorkingCopy.writeNewFile no longer creates parent directories
Diffstat (limited to 'org.eclipse.debug.tests')
-rw-r--r--org.eclipse.debug.tests/src/org/eclipe/debug/tests/launching/LaunchConfigurationTests.java46
1 files changed, 46 insertions, 0 deletions
diff --git a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/launching/LaunchConfigurationTests.java b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/launching/LaunchConfigurationTests.java
index a55039c6b..427ed581f 100644
--- a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/launching/LaunchConfigurationTests.java
+++ b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/launching/LaunchConfigurationTests.java
@@ -1306,6 +1306,52 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau
}
}
+
+ /**
+ * Ensures that client does not attempt to nest configurations in a sub directory when
+ * using local metadata location. See bug 275741.
+ *
+ * @throws CoreException
+ */
+ public void testIllegalFileSepCharName() {
+ try {
+ newConfiguration(null, "some\\nested\\config");
+ } catch (CoreException e) {
+ // i.e. expected code path
+ return;
+ }
+ assertTrue("Should be an illegal argument - cannot nest local configurations", false);
+ }
+
+ /**
+ * Ensures that client can nest configurations in a sub directory when
+ * using a workspace location. See bug 275741. For behavior compatibility
+ * a client should be able to use a slash in the configuration name.
+ *
+ * @throws CoreException
+ */
+ public void testLegalFileSepCharName() {
+ try {
+ newConfiguration(getProject(), "some\\nested\\config");
+ } catch (CoreException e) {
+ assertTrue("Should *not* be an illegal argument - can nest shared cofigurations", false);
+ }
+ }
+
+ /**
+ * Test that an illegal name with '<' causes an exception
+ *
+ * @throws CoreException
+ */
+ public void testIllegalCharName() {
+ try {
+ newConfiguration(getProject(), "<config>");
+ } catch (CoreException e) {
+ // expected code path
+ return;
+ }
+ assertTrue("Should be an illegal argument - illegal character used in name", false);
+ }
}

Back to the top