test-org-clocktable: fix batch testing
commit9231460ac02a6ded0d6b198bb4a3dcc44968147a
authorAchim Gratz <Stromeko@Stromeko.DE>
Mon, 5 Jan 2015 19:20:07 +0000 (5 20:20 +0100)
committerAchim Gratz <Stromeko@Stromeko.DE>
Mon, 5 Jan 2015 19:20:07 +0000 (5 20:20 +0100)
tree6c5cc897a62ba8dd4466d9f81c48ce9eca309bd0
parent18f50c4a2002da67d31332f6590d42f67a230cc5
test-org-clocktable: fix batch testing

* testing/lisp/test-org-clock.el (test-org-clock/clocktable): New
  function, refactor the original test sequence.
  (test-org-clock/clocktable1, test-org-clock/clocktable2): New tests
  using the new function.

ert-deftest is a macro.  Let-binding a defvar before it is defined
causes the variable to be undefined later on, so the second test
fails for Emacsen that do not perform eager macro expansion.
testing/lisp/test-org-clock.el