mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
r21254: Fix running the testsuite outside pidl/
This commit is contained in:
parent
1aecba7100
commit
84c15158b9
@ -19,8 +19,8 @@ sub parse_idl($)
|
|||||||
return Parse::Pidl::Samba4::Header::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");
|
like(parse_idl(""), qr/\/\* header auto-generated by pidl \*\n\//sm, "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("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; };"),
|
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");
|
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; };"),
|
like(parse_idl("interface p { typedef struct { int y; } x; };"),
|
||||||
|
Loading…
Reference in New Issue
Block a user