]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
gctl_test.t: minor tweaks
authorEnji Cooper <ngie@FreeBSD.org>
Sat, 22 Apr 2017 22:40:39 +0000 (22:40 +0000)
committerEnji Cooper <ngie@FreeBSD.org>
Sat, 22 Apr 2017 22:40:39 +0000 (22:40 +0000)
commitacca703a09d3567140e2080e37c51e70cd59a2cd
treeeb7dfe0dfa76c2a3d4e24f3063bcb6ec2d7ce11a
parent4e47dd1885350b0e346668401ba06dc0ab588e84
gctl_test.t: minor tweaks

- Declare $count with the `my` scope operator to permit `use strict`.
- Add `use strict`.
- Use `use warnings` instead of using `-w` in the shebang.
- Don't unlink $cmd when done (prevents unnecessary rebuilding).
- Improve the error message when running with insufficient permissions, e.g.,
  non-root.

MFC after: 5 weeks
Sponsored by: Dell EMC Isilon
tools/regression/geom_gpt/gctl_test.t