[Chapel Merge] Fix memleaks-as-failure infrastructure

Branch: refs/heads/master
Revision: d690e9e
Author: e-kayrakli
Log Message:

Merge pull request #16777 from e-kayrakli/fix-memleaks-testing

Fix memleaks-as-failure infrastructure

Due to a bug in nightly we haven’t been passing --memLeaks flags to the
executables in some memleaks configurations. This PR fixes that. Also,

  • Adjusts a test to be skipped with --memLeaks flag
  • Adds a dummy multilocale test to release/examples that should cause a
    failure mail to be generated

Test:

  • [x] the modified test is skipped
  • [x] new test leaks with --memLeaks

[Trivial, not reviewed]

Modified Files:
A test/release/examples/thisTestWillLeak.chpl
A test/release/examples/thisTestWillLeak.good
A test/release/examples/thisTestWillLeak.numlocales
M test/execflags/ferguson/args.skipif
M util/cron/nightly

Compare: https://github.com/chapel-lang/chapel/compare/f7a4a39511cf...d690e9ec4435