Fix compiletest trim
deprecation warnings
#56989
Merged
trim
deprecation warnings
#56989