awesome/tests
Uli Schlachter 3e9fdea650 test-leaks: Fix with Lua 5.1
I have no idea why this needs collectgarbage() to be called twice.

On the other hand, I can explain the change in tooltip.lua. Lua 5.2 introduced
"ephermeron tables". This means that in the following sitation, lua 5.2 can
collect the entry from the table, while 5.1 keeps the entry alive, because the
table has a strong reference to the value and that in turn has a strong
reference to the key:

  t = setmetatable({}, { __mode = "k"})
  do
    local k = {}
    t[k] = function() print(k) end
  end
  collectgarbage("collect")
  print(next(t, nil))

To handle this incompatibility, this commit just removes the whole indirection
through the module-level variable "data".

Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-09-27 16:04:20 +02:00
..
_runner.lua tests/_runner.lua: Load all dependencies 2015-09-02 21:51:20 +02:00
_wibox_helper.lua tests: Return more widgets from create_wibox() 2015-09-27 14:44:19 +02:00
run.sh tests/run.sh: Start Xvfb with -noreset 2015-08-13 12:59:57 +02:00
test-benchmark.lua Don't measure time for creating wiboxes 2015-09-27 15:07:22 +02:00
test-focus.lua tests: cleanup, remove sleep/print 2015-07-18 15:08:27 +02:00
test-leaks.lua test-leaks: Fix with Lua 5.1 2015-09-27 16:04:20 +02:00
test-spawn.lua Add a test for awful.util.spawn_with_line_callback 2015-09-02 22:27:47 +02:00
test-urgent.lua tests: use root.fake_input instead of xdotool 2015-08-10 23:04:19 +02:00