]> sourceware.org Git - lvm2.git/commit
tests: utils.sh six stacktrace
authorMarian Csontos <mcsontos@redhat.com>
Fri, 14 Jul 2017 17:51:59 +0000 (19:51 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 14 Jul 2017 18:18:42 +0000 (20:18 +0200)
commit1c95cf8c6f2d024642920c12d91c5de9e31ff7de
tree2478333de2d1326ee1812fd5445efe8e9fbce743
parent34504855a70772e1de3f117a9a610860ead80981
tests: utils.sh six stacktrace

Changes:

- BASH_SOURCE index was one off.
- The first line of stacktrace was pure confusion displaying executed
  script together with innermost line number (which was either 125 when
  STACKTRACE or 229 when skip was called.)
- We can safely ignore innermost call, as stack trace is always produced
  by stacktrace function.
- It is safer to test for array length, instead of testing FUNCNAME is
  main - if main function were introduced.
- Bashishm is safe to use as this function as a whole is relying on bash.
test/lib/utils.sh
This page took 0.037453 seconds and 5 git commands to generate.