Open MPI logo

MTT Devel Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all MTT Devel mailing list

From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2007-09-11 10:50:35


Ethan --

Could you show the use case that motivated this change?

Thanks.

On Sep 7, 2007, at 11:52 AM, emallove_at_[hidden] wrote:

> Author: emallove
> Date: 2007-09-07 11:52:04 EDT (Fri, 07 Sep 2007)
> New Revision: 998
> URL: https://svn.open-mpi.org/trac/mtt/changeset/998
>
> Log:
> Escape the Perl regular expression quantifiers in
> `&MPI::OMPI::find_network` (for test names such as
> `mpic++`).
>
> Text files modified:
> tmp/jms-new-parser/lib/MTT/Values/Functions/MPI/OMPI.pm | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> Modified: tmp/jms-new-parser/lib/MTT/Values/Functions/MPI/OMPI.pm
> ======================================================================
> ========
> --- tmp/jms-new-parser/lib/MTT/Values/Functions/MPI/OMPI.pm (original)
> +++ tmp/jms-new-parser/lib/MTT/Values/Functions/MPI/OMPI.pm
> 2007-09-07 11:52:04 EDT (Fri, 07 Sep 2007)
> @@ -98,6 +98,9 @@
> # Ignore argv[0]
> $str =~ s/^\s*\S+\s*(.+)$/\1/;
>
> + # Escape the quantifiers (for test names such as "mpi2c++")
> + $final =~ s/(\?|\*|\+|\{|\})/\\$1/g;
> +
> # Ignore everything beyond $final
> $str =~ s/^(.+)\s*$final.+$/\1/;
> Debug("Examining: $str\n");
> _______________________________________________
> mtt-svn mailing list
> mtt-svn_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/mtt-svn

-- 
Jeff Squyres
Cisco Systems