Opened 6 years ago

Closed 5 years ago

#12596 closed Bugs (fixed)

Sanitize metacharacters in test names

Reported by: Igor Akhmetov <igor.akhmetov@…> Owned by: Raffi Enficiaud
Milestone: Boost 1.67.0 Component: test
Version: Boost 1.62.0 Severity: Problem
Keywords: Cc:

Description

(This is a follow-up to https://svn.boost.org/trac/boost/ticket/12531)

If a name of a manually registered test contains one of the test filter metacharacters, it might lead to problems when it's passed via the --run_test command line argument. The list of characters which cause that problem includes at least ",*@+!/". I suggest sanitizing these characters similar to how ':' and ' ' are sanitized right now.

Change History (4)

comment:1 by Raffi Enficiaud, 5 years ago

Milestone: To Be DeterminedBoost 1.66.0
Owner: changed from Gennadiy Rozental to Raffi Enficiaud
Status: newassigned

On branch topic/12596-sanitize-metacharacters-test-names

comment:2 by Raffi Enficiaud, 5 years ago

Milestone: Boost 1.66.0Boost 1.67.0

comment:3 by Raffi Enficiaud, 5 years ago

I think I will re-enable the spaces in the names, I believe it should not cause any issue with the command line.

comment:4 by Raffi Enficiaud, 5 years ago

Resolution: fixed
Status: assignedclosed

In master

Note: See TracTickets for help on using tickets.