Add stream class's single clock class tests
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 7 Feb 2018 20:05:27 +0000 (15:05 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:33 +0000 (18:19 -0400)
commitfd87851996cc7df45670ca64a4279a4ecde2aeed
tree26aae31cdd525b811d6af6a88de38987075f48f3
parent8c4a29bac9fdec710f70395f51e214cf25f14799
Add stream class's single clock class tests

Those new tests verify that:

* You cannot have a clock class in one of the stream class's field types
  and a different one in one of its event classes.
* You cannot have two different clock classes in two different event
  classes of the same event class.
* You cannot set a stream class's CTF writer clock and have a clock
  class within this stream class which is not the stream class's clock's
  class.

The tests check those conditions when calling specific API functions and
in the expected order:

* bt_trace_add_stream_class()
* bt_event_create()
* bt_stream_class_add_event_class()

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
tests/lib/ctf-ir/Makefile.am
tests/lib/ctf-ir/test_stream_class.py [new file with mode: 0644]
This page took 0.024425 seconds and 4 git commands to generate.