Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce cmp_tree test function #3510

Merged
merged 1 commit into from
Dec 12, 2018
Merged

Introduce cmp_tree test function #3510

merged 1 commit into from
Dec 12, 2018

Conversation

orestisfl
Copy link
Member

Related to #3503

@orestisfl orestisfl changed the title Introduce cmp_tree test function (WIP) Introduce cmp_tree test function Nov 7, 2018
testcases/lib/i3test.pm.in Outdated Show resolved Hide resolved
# • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf
# (unless you are already familiar with Perl)
#
# Contains various tests that use the cmp_tree subroutine.
Copy link
Member Author

@orestisfl orestisfl Nov 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how we should split the tests. The sanity_checks are useful to test cmp_tree itself but the rest of the tests could be moved to the files that test the specific function, eg 291-swap.t.

It would also be possible to rewrite lots of the old tests to use the new function but I think that it would be counter-productive.

@orestisfl orestisfl added the waiting Waiting for feedback/changes from the author of the issue/PR. Make sure to notify us with a comment. label Nov 7, 2018
testcases/lib/i3test.pm.in Show resolved Hide resolved
testcases/lib/i3test.pm.in Show resolved Hide resolved

=item 1.

Upper case letters H, V, S, T mean horizontal, vertical, stacked and tabbed
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: maybe we can also add a floating layer eg with 'F'

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But we can do this in a separate PR

stapelberg added a commit to stapelberg/i3 that referenced this pull request Dec 8, 2018
Using the wrong X11 connection breaks the libev event handling model:
xcb_flush() must be called immediately before handing control to libev.

Before this fix:

1. xcb_prepare_cb would read and flush conn
2. restore_xcb_prepare_cb would read and flush restore_conn,
   BUT also inadvertantly call xcb_flush(conn), resulting in new
   events being filled into the XCB event queue
3. libev waits for new events
4. after 1 minute, libev times out and the events are processed

Diagnosed using strace on testcases/complete-run.pl.

related to commit 0d8b671

related to i3#3510
@orestisfl orestisfl force-pushed the tree.t branch 2 times, most recently from c7ba93c to 3402470 Compare December 8, 2018 12:52
@orestisfl
Copy link
Member Author

@Airblader how would you like to continue with this PR here?

@Airblader
Copy link
Member

@orestisf1993 LGTM. Anything from your side? If not, feel free to merge it!

@orestisfl orestisfl changed the title (WIP) Introduce cmp_tree test function Introduce cmp_tree test function Dec 12, 2018
@orestisfl orestisfl removed the waiting Waiting for feedback/changes from the author of the issue/PR. Make sure to notify us with a comment. label Dec 12, 2018
@orestisfl orestisfl merged commit 376833d into i3:next Dec 12, 2018
@orestisfl
Copy link
Member Author

Ok, I am merging it and we'll see if it needs improvements later.

@orestisfl orestisfl deleted the tree.t branch December 12, 2018 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants