[docs] Update an example
authorPaul Robinson <paul.robinson@sony.com>
Wed, 21 Dec 2022 16:41:38 +0000 (08:41 -0800)
committerPaul Robinson <paul.robinson@sony.com>
Wed, 21 Dec 2022 16:41:38 +0000 (08:41 -0800)
llvm/docs/TestingGuide.rst

index 0601f9b..bbf8ffe 100644 (file)
@@ -569,8 +569,8 @@ Also, it's generally better to write regular expressions that use entire
 triple components, than to do something clever to shorten them. For
 example, to match both freebsd and netbsd in an expression, you could write
 ``target={{.*(free|net)bsd.*}}`` and that would work. However, it would
-prevent a ``grep freebsd`` from finding this test. Better to use 
-``target={{.*(freebsd|netbsd).*}}`` in this case.
+prevent a ``grep freebsd`` from finding this test. Better to use:
+``target={{.+-freebsd.*}} || target={{.+-netbsd.*}}``
 
 
 Substitutions