diff --git a/test/functional/cmdLineTests/xtraceTests/build.xml b/test/functional/cmdLineTests/xtraceTests/build.xml new file mode 100644 index 00000000000..68d4591c474 --- /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..571c7f75243 --- /dev/null +++ b/test/functional/cmdLineTests/xtraceTests/playlist.xml @@ -0,0 +1,46 @@ + + + + ../variables.mk + + xtraceTests + + Mode109 + + $(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..1fe6c990eb7 --- /dev/null +++ b/test/functional/cmdLineTests/xtraceTests/xtraceTests.xml @@ -0,0 +1,72 @@ + + + + + + + + + + + + $EXE$ -Xtrace:methods={java/lang/String.concat()},maxstringlength='a',print=mt -version + Trace option unrecognized: -Xtrace:maxstringlength + Error processing trace option, detail: methodstrarglen takes an unsigned integer value from 1 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: methodstrarglen takes an unsigned integer value from 1 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 + + + +