From cceb48619f2b931f736f30323d277535bbb570f1 Mon Sep 17 00:00:00 2001 From: yoku0825 Date: Wed, 28 Sep 2022 08:55:30 +0900 Subject: [PATCH] Use full_output to avoid to die (PT-1967) (#494) --- t/pt-online-schema-change/bugs.t | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/t/pt-online-schema-change/bugs.t b/t/pt-online-schema-change/bugs.t index 3b072c8a..b1302c34 100644 --- a/t/pt-online-schema-change/bugs.t +++ b/t/pt-online-schema-change/bugs.t @@ -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(