1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r21254: Fix running the testsuite outside pidl/

This commit is contained in:
Jelmer Vernooij 2007-02-09 00:18:06 +00:00 committed by Gerald (Jerry) Carter
parent 1aecba7100
commit 84c15158b9

View File

@ -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; };"),