Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita9c20c8

Browse files
committed
Don't clobber test exit code at cleanup in LDAP/Kerberors tests
If the test script die()d before running the first test, the whole testwas interpreted as SKIPped rather than failed. The PostgreSQL::Clustermodule got this right.Backpatch to all supported versions.Discussion:https://www.postgresql.org/message-id/fb898a70-3a88-4629-88e9-f2375020061d@iki.fi
1 parentc8df46b commita9c20c8

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

‎src/test/kerberos/t/001_auth.pl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,12 @@
184184

185185
END
186186
{
187-
kill'INT',`cat$kdc_pidfile`if-f$kdc_pidfile;
187+
# take care not to change the script's exit value
188+
my$exit_code =$?;
189+
190+
kill'INT',`cat$kdc_pidfile`ifdefined($kdc_pidfile) &&-f$kdc_pidfile;
191+
192+
$? =$exit_code;
188193
}
189194

190195
note"setting up PostgreSQL instance";

‎src/test/ldap/t/001_auth.pl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,12 @@
163163

164164
END
165165
{
166+
# take care not to change the script's exit value
167+
my$exit_code =$?;
168+
166169
kill'INT',`cat$slapd_pidfile`if-f$slapd_pidfile;
170+
171+
$? =$exit_code;
167172
}
168173

169174
append_to_file($ldap_pwfile,$ldap_rootpw);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp