[cmake-developers] Allowed chars in test names

Rolf Eike Beer eike at sf-mail.de
Wed Jul 24 17:38:02 EDT 2013


Brad King wrote:
> On 07/22/2013 04:18 PM, Rolf Eike Beer wrote:
> > Since d0170584c54b515b7eb2d044c3d48332523b3a37 there is a comment stating
> > that "spaces, quotes, or other characters special in CMake syntax" are
> > not allowed
> > in a test name. This raised 2 topics:
> This was just documenting an existing limitation.

Yes, of course.

> > -first: the only check done in add_test() is that the name is not empty.
> > If
> > there are forbidden characters we must test for them, reject everything
> > that is invalid, and have a check that verifies that this works.
> 
> One could add such a check and test with a policy for compatibility
> if the validation is particularly strict.
> 
> > -second: what does "special" mean?
> 
> Look at the CMake language lexer.

So for the beginning I would go and just simply reject every test name that 
has spaces or quotes, because that has never worked.


Eike
-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20130724/db6a64d0/attachment.sig>


More information about the cmake-developers mailing list