Add tests for filter notification ordering
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Fri, 12 Feb 2016 16:37:05 +0000 (11:37 -0500)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Fri, 12 Feb 2016 17:07:20 +0000 (12:07 -0500)
commit29c0b5051b9f5b1ad98590ce4032c4d4b544acd5
treecb473809cb30cab95258bbe332ff353fa1485111
parentd838d83536013a25de00acf93d0e2c30ec9cf3c3
Add tests for filter notification ordering

There was a bug in the Java agent with regards to agent teardown:
upon disconnection, the list of tracked events was cleared but no
corresponding filter change notifications were sent! This could leave
some event rules dangling, and future listeners would get incorrectly
notified that these events were enabled while they were not.

Add some tests to cover for this use case.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
lttng-ust-java-tests-common/src/main/java/org/lttng/ust/agent/integration/filter/FilterListenerITBase.java
lttng-ust-java-tests-common/src/main/java/org/lttng/ust/agent/integration/filter/FilterListenerOrderingITBase.java [new file with mode: 0644]
lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/integration/filter/JulFilterListenerOrderingIT.java [new file with mode: 0644]
lttng-ust-java-tests-log4j/src/test/java/org/lttng/ust/agent/integration/filter/Log4jFilterListenerOrderingIT.java [new file with mode: 0644]
This page took 0.023448 seconds and 4 git commands to generate.