[PATCH] testsuite: fix bad escaping of '[' & ']'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix escaping of square brackets in some test patterns.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 validation/c11-noreturn.c     | 2 +-
 validation/c11-thread-local.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/validation/c11-noreturn.c b/validation/c11-noreturn.c
index bc20de82f..d20a2249b 100644
--- a/validation/c11-noreturn.c
+++ b/validation/c11-noreturn.c
@@ -5,5 +5,5 @@ static _Noreturn void foo(void) { while (1) ; }
  * check-command: test-parsing -std=c11 $file
  *
  * check-output-ignore
- * check-output-contains: \[noreturn\]
+ * check-output-contains: \\[noreturn\\]
  */
diff --git a/validation/c11-thread-local.c b/validation/c11-thread-local.c
index 464c3e16a..db848de63 100644
--- a/validation/c11-thread-local.c
+++ b/validation/c11-thread-local.c
@@ -5,5 +5,5 @@ static _Thread_local int foo;
  * check-command: test-parsing -std=c11 $file
  *
  * check-output-ignore
- * check-output-contains: \[tls\]
+ * check-output-contains: \\[tls\\]
  */
-- 
2.20.1




[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux