From c5c852c9b135b113a62432d0e397e3435f9a820d Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 9 Feb 2007 00:18:06 +0000 Subject: [PATCH] r21254: Fix running the testsuite outside pidl/ --- source/pidl/tests/header.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/pidl/tests/header.pl b/source/pidl/tests/header.pl index e7cd9139160..9271c57c4ca 100755 --- a/source/pidl/tests/header.pl +++ b/source/pidl/tests/header.pl @@ -19,8 +19,8 @@ sub parse_idl($) return Parse::Pidl::Samba4::Header::Parse($idl); } -is("/* header auto-generated by pidl */\n\n#include \n\n", parse_idl(""), "includes work"); -is("/* header auto-generated by pidl */\n\n#include \n\n", parse_idl("interface x {}"), "simple empty interface doesn't cause overhead"); +like(parse_idl(""), qr/\/\* header auto-generated by pidl \*\n\//sm, "includes work"); +like(parse_idl("interface x {}"), qr/\/\* header auto-generated by pidl \*\/\n/sm, "simple empty interface doesn't cause overhead"); like(parse_idl("interface p { typedef struct { int y; } x; };"), qr/.*#ifndef _HEADER_p\n#define _HEADER_p\n.+\n#endif \/\* _HEADER_p \*\/.*/ms, "ifdefs are created"); like(parse_idl("interface p { typedef struct { int y; } x; };"), -- 2.11.4.GIT