The DTrace harness (dtest.pl) executes DTrace scripts with the -C flag,

which causes dtrace(1) to run the C preprocessor on input scripts before
executing them. Suppress some warnings emitted by the preprocessor which are
confusing the DTrace lexer tests.

MFC after:	1 week
This commit is contained in:
Mark Johnston 2015-01-30 04:41:49 +00:00
parent 6e9584fd15
commit c0d678c9dd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277913
3 changed files with 9 additions and 3 deletions

View File

@ -36,8 +36,10 @@
BEGIN
{
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-pp-token"
h = '
';
#pragma clang diagnostic pop
exit(0);
}

View File

@ -36,7 +36,9 @@
BEGIN
{
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-pp-token"
h = '';
exit(0);
#pragma clang diagnostic pop
}

View File

@ -36,9 +36,11 @@
BEGIN
{
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-pp-token"
h = "hello
there";
exit(0);
#pragma clang diagnostic pop
}