Extend cmsTraceFunction test to putenv() and --abort
#48778
Merged
cmsTraceFunction test to putenv() and --abort
#48778