summaryrefslogtreecommitdiff
path: root/source4/pidl/tests
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-02-09 00:18:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:44:54 -0500
commit9ca02af51059244a9b30cda8575b0e535e86f4b9 (patch)
treedc3a97d014803d6c3da6b5f635925fabd82c22c1 /source4/pidl/tests
parent45db1030651e69896fdb9e78aa2e2495a7ce7ff5 (diff)
downloadsamba-9ca02af51059244a9b30cda8575b0e535e86f4b9.tar.gz
samba-9ca02af51059244a9b30cda8575b0e535e86f4b9.tar.bz2
samba-9ca02af51059244a9b30cda8575b0e535e86f4b9.zip
r21254: Fix running the testsuite outside pidl/
(This used to be commit 84c15158b986ef9e82f46d6c01d5cbf04300cda5)
Diffstat (limited to 'source4/pidl/tests')
-rwxr-xr-xsource4/pidl/tests/header.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/pidl/tests/header.pl b/source4/pidl/tests/header.pl
index e7cd913916..9271c57c4c 100755
--- a/source4/pidl/tests/header.pl
+++ b/source4/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 <core.h>\n\n", parse_idl(""), "includes work");
-is("/* header auto-generated by pidl */\n\n#include <core.h>\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; };"),