Skip to content

Commit

Permalink
10509 zpool_003_pos can't find core file
Browse files Browse the repository at this point in the history
Reviewed by: Toomas Soome <tsome@me.com>
Reviewed by: Marco van Wieringen <marco.van.wieringen@planets.elm.net>
Reviewed by: Andy Fiddaman <illumos@fiddaman.net>
Approved by: Dan McDonald <danmcd@mnx.io>
  • Loading branch information
jasonbking committed Apr 1, 2024
1 parent da7002c commit 71b3c7b
Showing 1 changed file with 7 additions and 3 deletions.
Expand Up @@ -27,6 +27,7 @@

#
# Copyright (c) 2012, 2016 by Delphix. All rights reserved.
# Copyright 2024 Jason King
#

. $STF_SUITE/include/libtest.shlib
Expand Down Expand Up @@ -57,15 +58,18 @@ fi

log_mustnot zpool freeze fakepool

coreadm -p $TESTDIR/core.%f
corefile=$TESTDIR/core.zpool

# Remove corefile possibly left by previous failing run of this test.
[[ -f core ]] && log_must rm -f core
[[ -f $corefile ]] && log_must rm -f $corefile

ZFS_ABORT=1; export ZFS_ABORT
ulimit -c unlimited
zpool > /dev/null 2>&1
unset ZFS_ABORT

[[ -f core ]] || log_fail "zpool did not dump core by request."
[[ -f core ]] && log_must rm -f core
[[ -f $corefile ]] || log_fail "zpool did not dump core by request."
[[ -f $corefile ]] && log_must rm -f $corefile

log_pass "Debugging features of zpool succeed."

0 comments on commit 71b3c7b

Please sign in to comment.