mirror of https://github.com/KLayout/klayout.git
More robust unit tests.
This commit is contained in:
parent
e42b731e41
commit
213a6f306b
|
|
@ -534,9 +534,7 @@ class QtBinding_TestClass < TestBase
|
|||
|
||||
GC.start
|
||||
|
||||
assert_equal(ef.log.select { |s| s !~ /RBA::QKeyEvent: ShortcutOverride/ }.join("\n"), "RBA::QKeyEvent: KeyPress (6)\nRBA::QKeyEvent: KeyPress (6)\nRBA::QKeyEvent: KeyPress (6)")
|
||||
|
||||
# TODO: on macOS 10.13, ef.log yields "RBA::QKeyEvent_Native: ShortcutOverride (51)\nRBA::QKeyEvent: KeyPress (6)\nRBA::QKeyEvent_Native: ShortcutOverride (51)\nRBA::QKeyEvent: KeyPress (6)\nRBA::QKeyEvent_Native: ShortcutOverride (51)\nRBA::QKeyEvent: KeyPress (6)", causing this test to fail.
|
||||
assert_equal(ef.log.select { |s| s !~ /RBA::QKeyEvent(_Native)?: ShortcutOverride/ }.join("\n"), "RBA::QKeyEvent: KeyPress (6)\nRBA::QKeyEvent: KeyPress (6)\nRBA::QKeyEvent: KeyPress (6)")
|
||||
|
||||
ef = nil
|
||||
ef = EventFilter::new
|
||||
|
|
|
|||
Loading…
Reference in New Issue