awesome/tests
Uli Schlachter c218b1da72 Test and fix swapping clients
The code in luaA_client_swap() is incorrect, because
luaA_object_emit_signal() already pops the arguments to the signal.
Still, the code here tried to remove the arguments from the Lua stack
again, thereby corrupting the stack (removing more items than there are
in the stack).

Normally, popping more things from the stack than it has entries
silently corrupts the Lua stack. Apparently this doesn't necessarily
cause any immediate issues, because this code has been broken since nine
months and no one noticed. This mistakes was introduced in commit
55190646.

This issue was only noticed by accident. Thus, this commit also adds a
small integration test that exercises this bug. This test catches the
issue, but only on Travis, because there we are building our own version
of Lua 5.3 and that one has assertions enabled.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-10-29 09:34:45 +02:00
..
examples tests: Test the slider widget. 2016-10-12 02:24:47 -04:00
_client.lua Rewrite tests/_client.lua 2016-09-30 09:58:20 +02:00
_multi_screen.lua tests: Add a framework to make it easier to test multiple screens. 2016-09-05 17:13:53 -04:00
_runner.lua Make tests more reliable on "early errors" 2016-03-06 10:20:45 +01:00
_wibox_helper.lua textclock: Move to wibox.widget 2016-05-30 17:51:19 -04:00
run.sh tests/run.sh: Use dbus-send directly with low timeouts (#1116) 2016-09-25 20:28:27 +02:00
test-awesomerc.lua awful.tag: Rename nmaster to master_count 2016-04-11 23:54:28 -04:00
test-awful-client.lua tests: Test client focus stealing filters. 2016-10-04 01:00:55 -04:00
test-awful-layout.lua tests: Test all client layouts 2016-04-18 04:20:23 -04:00
test-awful-rules.lua tests: Try to detect client "manage" signal race conditions. 2016-09-04 02:52:16 -04:00
test-awful-screen.lua tests: Test awful.screen against regressions 2016-04-11 23:54:28 -04:00
test-awful-tag.lua tests: Test moving tags between screens. 2016-09-05 17:13:53 -04:00
test-awful-widget-button.lua tests: Test recursive signals on mouse events. 2016-08-20 15:41:12 -04:00
test-awful-widget-watch.lua Make tests more reliable on "early errors" 2016-03-06 10:20:45 +01:00
test-benchmark.lua Make tests more reliable on "early errors" 2016-03-06 10:20:45 +01:00
test-client-swap.lua Test and fix swapping clients 2016-10-29 09:34:45 +02:00
test-current-desktop.lua Fix the test that the previous commit added 2016-06-04 17:05:42 +02:00
test-dbus-error.lua Test & fix a bug with dbus.disconnect_signal (#1096) 2016-09-18 12:50:40 +02:00
test-drawable-bgimage.lua Add a test for drawable:set_bgimage() 2016-07-09 10:28:42 +02:00
test-focus.lua Make tests more reliable on "early errors" 2016-03-06 10:20:45 +01:00
test-geometry.lua tests: Test geometry changes 2016-04-20 00:11:04 -04:00
test-leak-client.lua Make tests more reliable on "early errors" 2016-03-06 10:20:45 +01:00
test-leaks.lua Fix memory leak in the default config on screen removal 2016-09-30 22:46:51 +02:00
test-maximize.lua change test value for client.border_width 2016-07-27 13:43:28 +02:00
test-miss-handlers.lua tests: Test the declarative widget system on wiboxes 2016-08-01 16:10:53 -04:00
test-resize.lua tests: Test mouse.move on odd sized clients. 2016-08-12 17:02:33 -04:00
test-screen-changes.lua Fix memory leak in the default config on screen removal 2016-09-30 22:46:51 +02:00
test-signal.lua Add awesome.{kill,unix_signal} 2016-05-27 19:22:41 +02:00
test-spawn-snid.lua Add awesome.hostname 2016-05-27 19:22:42 +02:00
test-spawn.lua tests: Test spawn empty command corner case 2016-08-09 18:50:34 -04:00
test-struts.lua Fix memory leak in the default config on screen removal 2016-09-30 22:46:51 +02:00
test-tag-gap-single-client.lua Fix awful.tag.object.get_gap_single_client (#1190) 2016-10-26 01:43:45 +02:00
test-tooltip.lua Fix test-tooltip.lua: Run the event loop 2016-09-30 09:36:47 +02:00
test-urgent.lua Default config: Remove tags table 2016-04-26 09:36:53 +02:00
test-use-after-gc.lua Improve behaviour of GC'd objects 2016-09-24 14:37:07 +02:00