changeset 14468:bae272e8923c

8172188: JDI tests fail due to "permission denied" when creating temp file Reviewed-by: hseigel, mseledtsov
author ctornqvi
date Thu, 05 Jan 2017 16:46:28 -0500
parents 4984fad6c950
children 72e77abe6d85
files test/com/sun/jdi/ShellScaffold.sh
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/test/com/sun/jdi/ShellScaffold.sh	Thu May 22 15:46:50 2014 +0400
+++ b/test/com/sun/jdi/ShellScaffold.sh	Thu Jan 05 16:46:28 2017 -0500
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 #
-# Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2002, 2017, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -267,10 +267,10 @@
          # treat them as control chars on mks (eg \t is tab)
          # Oops; windows mks really seems to want this cat line
          # to start in column 1
-         if [ -w "$SystemRoot" ] ; then
-            tmpFile=$SystemRoot/tmp.$$
-         elif [ -w "$SYSTEMROOT" ] ; then
-            tmpFile=$SYSTEMROOT/tmp.$$
+         if [ -w "$Temp" ] ; then
+            tmpFile=$Temp/tmp.$$
+         elif [ -w "$TEMP" ] ; then
+            tmpFile=$TEMP/tmp.$$
          else
             tmpFile=tmp.$$
          fi