Use full_output to avoid to die (PT-1967) (#494)

This commit is contained in:
yoku0825
2022-09-28 08:55:30 +09:00
committed by GitHub
parent 26522d20fd
commit cceb48619f

View File

@@ -518,7 +518,7 @@ $sb->load_file('master', "$sample/bug-1340728_cleanup.sql");
# If this test fails it might lead to "segmentation fault" or "out of memory"
# #############################################################################
$output = output(
($output, $exit_status) = full_output(
sub { pt_online_schema_change::main(@args, "$master_dsn,D=sakila,t=actor",
'--execute',
'--alter-foreign-keys-method=drop_swap',
@@ -526,7 +526,6 @@ $output = output(
'--nocheck-plan',
),
},
stderr => 1,
);
like(