Add stream class's single clock class tests
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 7 Feb 2018 20:05:27 +0000 (15:05 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 2 May 2019 03:32:03 +0000 (23:32 -0400)
commit876b387248ba47d4aeb2a9d13ca3f6e11fe419d7
treed91a634c2ce4c97e023e52184c07024559304177
parent2a3ced3c38855ea18eb9b29e58563a7301b98216
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.023714 seconds and 4 git commands to generate.