Open MPI logo

MTT Devel Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: Re: [MTT devel] [MTT svn] svn:mtt-svn r1314
From: Ethan Mallove (ethan.mallove_at_[hidden])
Date: 2009-09-08 14:10:09


Mike,

What if argv contains a funclet, e.g.,

  argv = &foo()

Won't this change prevent it from getting expanded?

-Ethan

On Tue, Sep/08/2009 09:43:37AM, miked_at_[hidden] wrote:
> Author: miked
> Date: 2009-09-08 09:43:37 EDT (Tue, 08 Sep 2009)
> New Revision: 1314
> URL: https://svn.open-mpi.org/trac/mtt/changeset/1314
>
> Log:
> fix:
>
> &test_np() can return incorrect value if used inside argv, here is a scenario:
>
> This behavior can be explained in next words as evaluation &np_test()
> returns uninitialized $MTT::Test::Run::test_np that is initialized later in _run_one_np function.
>
> As a result using
> $MTT::Test::Run::test_argv = $run->{argv};
> allows to avoid damaging $MTT::Test::Run::test_argv variable on current step but evaluation of &test_np() is done with whole command_line.
>
>
> Text files modified:
> trunk/lib/MTT/Test/RunEngine.pm | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> Modified: trunk/lib/MTT/Test/RunEngine.pm
> ==============================================================================
> --- trunk/lib/MTT/Test/RunEngine.pm (original)
> +++ trunk/lib/MTT/Test/RunEngine.pm 2009-09-08 09:43:37 EDT (Tue, 08 Sep 2009)
> @@ -191,7 +191,7 @@
> $MTT::Test::Run::test_executable_abspath = $test_exe_abs;
> $MTT::Test::Run::test_executable_basename = $test_exe_basename;
>
> - $MTT::Test::Run::test_argv = MTT::Values::EvaluateString($run->{argv}, $ini, $test_run_full_name);
> + $MTT::Test::Run::test_argv = $run->{argv};
> my $all_np = MTT::Values::EvaluateString($run->{np}, $ini, $test_run_full_name);
>
> my $save_run_mpi_details = $MTT::Test::Run::mpi_details;
> _______________________________________________
> mtt-svn mailing list
> mtt-svn_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/mtt-svn