diff --git a/test/functional/cmdLineTests/xtraceTests/build.xml b/test/functional/cmdLineTests/xtraceTests/build.xml new file mode 100644 index 00000000000..502d9fa1785 --- /dev/null +++ b/test/functional/cmdLineTests/xtraceTests/build.xml @@ -0,0 +1,46 @@ + + + + + + + + Build cmdLineTests xtraceTests + + + + + + + + + + + + + + + + + + diff --git a/test/functional/cmdLineTests/xtraceTests/playlist.xml b/test/functional/cmdLineTests/xtraceTests/playlist.xml new file mode 100644 index 00000000000..cd77b325585 --- /dev/null +++ b/test/functional/cmdLineTests/xtraceTests/playlist.xml @@ -0,0 +1,43 @@ + + + + ../variables.mk + + xtraceTests + $(JAVA_COMMAND) $(CMDLINETESTER_JVM_OPTIONS) \ + -DEXE=$(SQ)$(JAVA_COMMAND) $(JVM_OPTIONS) $(SQ) \ + -jar $(CMDLINETESTER_JAR) -config $(Q)$(TEST_RESROOT)$(D)xtraceTests.xml$(Q) \ + -nonZeroExitWhenError; \ + $(TEST_STATUS) + + extended + + + functional + + + openj9 + ibm + + + diff --git a/test/functional/cmdLineTests/xtraceTests/xtraceTests.xml b/test/functional/cmdLineTests/xtraceTests/xtraceTests.xml new file mode 100644 index 00000000000..d05ff5a61ad --- /dev/null +++ b/test/functional/cmdLineTests/xtraceTests/xtraceTests.xml @@ -0,0 +1,67 @@ + + + + + + + + + + + $EXE$ -Xtrace:methods={java/lang/String.concat()},maxstringlength='a',print=mt -version + Trace option unrecognized: -Xtrace:maxstringlength + Error processing trace option, detail: maxstringlength takes an integer value from 0 to 128 + Error processing trace option, detail: Invalid character(s) encountered in decimal number + + + + $EXE$ -Xtrace:methods={java/lang/String.concat()},maxstringlength=129,print=mt -version + Trace option unrecognized: -Xtrace:maxstringlength + Error processing trace option, detail: maxstringlength takes an integer value from 0 to 128 + Error processing trace option: -Xtrace:maxstringlength=129 + + + + $EXE$ -Xtrace:methods={java/lang/String.concat()},maxstringlength=1,print=mt -version + (.)*method arguments: \(\(String\)"(\w)"\.{3}\) + (java|openjdk|semeru) version + + + + $EXE$ -Xtrace:methods={java/lang/String.concat()},maxstringlength=6,print=mt -version + (.)*method arguments: \(\(String\)"(\w{6})"\.{3}\) + (java|openjdk|semeru) version + + + + $EXE$ -Xtrace:methods={java/lang/String.concat()},maxstringlength=0,print=mt -version + (.)*method arguments: \(\(String\)"([\x00-\x7F]{0,32})"\) + (java|openjdk|semeru) version + + + + $EXE$ -Xtrace:methods={java/lang/String.concat()},print=mt -version + (.)*method arguments: \(\(String\)"([\x00-\x7F]{0,32})"\) + (java|openjdk|semeru) version + +