Report unknown sections in run-tests.php

This commit is contained in:
Gabriel Caruso 2018-02-19 02:42:16 -03:00 committed by Nikita Popov
parent df1439241a
commit d4999ad8e9

View File

@ -1305,6 +1305,20 @@ TEST $file
$borked = true;
}
// check for unknown sections
if (!in_array($section, array(
'EXPECT', 'EXPECTF', 'EXPECTREGEX', 'EXPECTREGEX_EXTERNAL', 'EXPECT_EXTERNAL', 'EXPECTF_EXTERNAL', 'EXPECTHEADERS',
'POST', 'POST_RAW', 'GZIP_POST', 'DEFLATE_POST', 'GET', 'COOKIE', 'ARGS', 'REQUEST', 'HEADERS',
'FILE', 'FILEEOF', 'FILE_EXTERNAL', 'REDIRECTTEST',
'CAPTURE_STDIO', 'STDIN', 'CGI', 'PHPDBG',
'INI', 'ENV', 'EXTENSIONS',
'SKIPIF', 'XFAIL', 'CLEAN',
'CREDITS', 'DESCRIPTION',
))) {
$bork_info = 'Unknown section "' . $section . '"';
$borked = true;
}
$section_text[$section] = '';
$secfile = $section == 'FILE' || $section == 'FILEEOF' || $section == 'FILE_EXTERNAL';
$secdone = false;