Skip to content

Commit

Permalink
Merge pull request #16272 from hangshao0/FixSCC
Browse files Browse the repository at this point in the history
Add test for default SCC directory
  • Loading branch information
pshipton committed Nov 7, 2022
2 parents f6c7bee + 4a201a5 commit 8292ae6
Showing 1 changed file with 20 additions and 1 deletion.
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
Copyright (c) 2018, 2021 IBM Corp. and others
Copyright (c) 2018, 2022 IBM Corp. and others
This program and the accompanying materials are made available under
the terms of the Eclipse Public License 2.0 which accompanies this
distribution and is available at https://www.eclipse.org/legal/epl-2.0/
Expand All @@ -24,6 +24,10 @@
<variable name="currentMode" value="$mode204$"/>
<variable name="CP_HANOI" value="-cp $UTILSJAR$" />
<variable name="PROGRAM_HANOI" value="org.openj9.test.ivj.Hanoi 2" />

<variable name="LINUX_AIX_OSX_PLATFORMS" value="aix.*,linux.*,osx.*" />
<variable name="ZOS_PLATFORMS" value="zos.*" />
<variable name="WINDOWS_PLATFORMS" value="win.*" />
<if testVariable="SCMODE" testValue="204" resultVariable="currentMode" resultValue="$mode204$"/>

<echo value=" "/>
Expand Down Expand Up @@ -74,6 +78,21 @@
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
</test>

<test id="Test 2: Test the default shared cache directory" timeout="600" runPath=".">
<command>$JAVA_EXE$ -Xtrace:print={j9shr.2264} -Xshareclasses:verbose,printCacheFilename</command>
<!-- Enable j9shr.2264 Trc_SHR_OSC_getCacheDir_j9shmem_getDir_failed1 for debugging purpose when failed -->
<output type="success" caseSensitive="no" regex="no" platforms="$LINUX_AIX_OSX_PLATFORMS$">/.cache/javasharedresources/</output>
<output type="success" caseSensitive="no" regex="no" platforms="$ZOS_PLATFORMS$">/tmp/javasharedresources/</output>
<output type="success" caseSensitive="no" regex="no" platforms="$WINDOWS_PLATFORMS$">\AppData\Local\javasharedresources\</output>

<output type="failure" caseSensitive="no" regex="no" platforms="$LINUX_AIX_OSX_PLATFORMS$">/tmp/</output>
<output type="failure" caseSensitive="no" regex="no" platforms="$ZOS_PLATFORMS$">/.cache/</output>
<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes" platforms="$WINDOWS_PLATFORMS$">[\\/]tmp[\\/]</output>
<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes" platforms="$WINDOWS_PLATFORMS$">[\\/].cache[\\/]</output>
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
</test>

<exec command="$JAVA_EXE$ -Xshareclasses:destroy" quiet="false"/>
<!--
***** IMPORTANT NOTE *****
Expand Down

0 comments on commit 8292ae6

Please sign in to comment.