mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-04 02:51:31 -08:00
Ensure that mmqa tests require either a pass or a specified failure.
Copied from Perforce Change: 194668
This commit is contained in:
parent
09a10b1cce
commit
f2242fcb64
4 changed files with 16 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ TEST_HEADER
|
|||
link = testlib.o
|
||||
OUTPUT_SPEC
|
||||
count < 10
|
||||
errtext = alloc: COMMIT_LIMIT
|
||||
END_HEADER
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -47,5 +47,6 @@ int main(void)
|
|||
/* Can't exhaust 64-bit address space by allocating, so fake a pass. */
|
||||
report("arena", "%d", ARENAS);
|
||||
}
|
||||
pass();
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,5 +39,6 @@ int main(void)
|
|||
/* Can't exhaust 64-bit address space by allocating, so fake a pass. */
|
||||
report("arena", "%d", ARENAS);
|
||||
}
|
||||
pass();
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -111,6 +111,19 @@ sub readheader {
|
|||
delete $spec_output{"result"};
|
||||
delete $spec_rel{"result"};
|
||||
}
|
||||
# If the test case specifies neither completion nor failure, assume
|
||||
# completion is intended.
|
||||
my @expected_keys = qw(completed assert abort assert_or_abort errtext);
|
||||
my $have_expected = 0;
|
||||
foreach $key (@expected_keys) {
|
||||
if (exists $spec_output{$key}) {
|
||||
$have_expected = 1;
|
||||
}
|
||||
}
|
||||
if (!$have_expected) {
|
||||
$spec_output{"completed"} = "yes";
|
||||
$spec_rel{"completed"} = "=";
|
||||
}
|
||||
}
|
||||
|
||||
sub readvals {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue