aboutsummaryrefslogtreecommitdiffstats
path: root/src/junit/com
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-11-28 03:56:33 +0100
committerSven Gothel <[email protected]>2023-11-28 03:56:33 +0100
commitc8cb87e17a14281a9d0e2f311b8534ecb7ac00b4 (patch)
treedcbce53804b54a224061e24a3217e600f04fc493 /src/junit/com
parentc7efca6d9b0db7305f5352ebf15d915ae5a1fa24 (diff)
Bug 1474: Allow temp folder for exe-file test to contain parenthesis on Windows
If the temp path contains parenthesis on Windows, e.g. the username or the sub-temp folder, the used exeTestFile.getCanonicalPath() can't be used by 'Runtime.getRuntime().exec( path )'. Example: C:\Users\(ABC)abc\AppData\Local\Temp Output: Exe-Tst: 'C:\Users\' is not recognized as an internal or external command, operable program or batch file. Hence the complete canonical path must be quoted, i.e. Path: "C:\Users\(ABC)abc\AppData\Local\Temp"
Diffstat (limited to 'src/junit/com')
-rw-r--r--src/junit/com/jogamp/common/net/TestUri99LaunchOnReservedCharPathBug908.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/junit/com/jogamp/common/net/TestUri99LaunchOnReservedCharPathBug908.java b/src/junit/com/jogamp/common/net/TestUri99LaunchOnReservedCharPathBug908.java
index 3b3cc6f..f3e9970 100644
--- a/src/junit/com/jogamp/common/net/TestUri99LaunchOnReservedCharPathBug908.java
+++ b/src/junit/com/jogamp/common/net/TestUri99LaunchOnReservedCharPathBug908.java
@@ -110,6 +110,11 @@ public class TestUri99LaunchOnReservedCharPathBug908 extends SingletonJunitCase
*/
}
+ @Test
+ public void test02TempJarCacheOddPath() throws IOException, IllegalArgumentException, URISyntaxException {
+ // Bug 1474, issues w/ windows file path char: ( )
+ testTempJarCacheOddJarPathImpl("Users/(ABC)abc/AppData/Local/Temp/");
+ }
private void testTempJarCacheOddJarPathImpl(final String subPathUTF) throws IOException, IllegalArgumentException, URISyntaxException {
if(AndroidVersion.isAvailable) { System.err.println("n/a on Android"); return; }