]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r319800,r319806:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 18 Jul 2017 17:16:58 +0000 (17:16 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 18 Jul 2017 17:16:58 +0000 (17:16 +0000)
commit7ccfbedebe46c51265219e67bd351d14cee75336
tree87e3925360e0384168fa067747c12c29248784ff
parent550d3f720ac32248025b82d1587e5ce7f0e13278
MFC r319800,r319806:

r319800:

Don't explicitly get the class to PART in gctl_test_helper.c

This will allow the tool to be used with arbitrary geom(4) classes, like GEOM.

Specify class=PART explicitly in the tester to keep existing behavior.

r319806:

Improve handling with system state

- Always unlink $cmd after exit via END block.
- The tests don't function well if kern.geom.debugflags != 0. Save debugflags,
  then restore them at the end of the test.

git-svn-id: svn://svn.freebsd.org/base/stable/10@321137 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
tools/regression/geom_gpt/gctl_test.t
tools/regression/geom_gpt/gctl_test_helper.c