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

Commit3d5a9bb

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 parent1843a27 commit3d5a9bb

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
@@ -188,7 +188,12 @@
188188

189189
END
190190
{
191-
kill'INT',`cat$kdc_pidfile`if-f$kdc_pidfile;
191+
# take care not to change the script's exit value
192+
my$exit_code =$?;
193+
194+
kill'INT',`cat$kdc_pidfile`ifdefined($kdc_pidfile) &&-f$kdc_pidfile;
195+
196+
$? =$exit_code;
192197
}
193198

194199
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
@@ -150,7 +150,12 @@
150150

151151
END
152152
{
153+
# take care not to change the script's exit value
154+
my$exit_code =$?;
155+
153156
kill'INT',`cat$slapd_pidfile`if-f$slapd_pidfile;
157+
158+
$? =$exit_code;
154159
}
155160

156161
append_to_file($ldap_pwfile,$ldap_rootpw);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp