From fe6958277c1ccc45c8cb58fb7a960160300cc1e6 Mon Sep 17 00:00:00 2001 From: Nick Kamal Date: Tue, 26 Nov 2024 15:43:24 -0500 Subject: [PATCH] cmdline tests for -Xtrace:methodstrarglen Closes: #16416 Signed-off-by: Nick Kamal --- .../cmdLineTests/xtraceTests/xtraceTests.xml | 75 ++++++++++++++----- 1 file changed, 55 insertions(+), 20 deletions(-) diff --git a/test/functional/cmdLineTests/xtraceTests/xtraceTests.xml b/test/functional/cmdLineTests/xtraceTests/xtraceTests.xml index 5573834229f..532985ee035 100644 --- a/test/functional/cmdLineTests/xtraceTests/xtraceTests.xml +++ b/test/functional/cmdLineTests/xtraceTests/xtraceTests.xml @@ -1,37 +1,72 @@ - + - - $EXE$ -Xtrace:methods={java/lang/String.concat'()'},print=mt -version + + $EXE$ -Xtrace:methods={java/lang/String.concat()},methodStrArgLen='a',print=mt -version Trace option unrecognized: -Xtrace:methodStrArgLen - 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 .?. + 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()},methodStrArgLen=129,print=mt -version + Trace option unrecognized: -Xtrace:methodStrArgLen + Error processing trace option, detail: methodstrarglen takes an unsigned integer value from 1 to 128 + Error processing trace option: -Xtrace:methodStrArgLen=129 + + + + $EXE$ -Xtrace:methods={java/lang/String.concat()},methodStrArgLen=1,print=mt -version + (.)*method arguments: \(\(String\)"(\w)"\.{3}\) + (java|openjdk|semeru) version + + + + + $EXE$ -Xtrace:methods={java/lang/String.concat()},methodStrArgLen=6,print=mt -version + + (.)*method arguments: \(\(String\)"(\w{6})"\.{3}\) + (java|openjdk|semeru) version + + + + $EXE$ -Xtrace:methods={java/lang/String.concat()},methodStrArgLen=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 + + +