mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 13:30:27 +01:00
test: add litest_log_group() for easier test log grouping
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1210>
This commit is contained in:
parent
669bc620aa
commit
d5761547da
1 changed files with 8 additions and 0 deletions
|
|
@ -99,6 +99,14 @@ void _litest_checkpoint(const char *func,
|
|||
#define litest_checkpoint(...) \
|
||||
_litest_checkpoint(__func__, __LINE__, ANSI_GREEN, __VA_ARGS__)
|
||||
|
||||
#define litest_log_group(...) \
|
||||
for (bool i_ = ({ \
|
||||
litest_checkpoint("🭋🬂🬂🬂🬂🬂🬂🬂🬂🬂🬂🬂🬂🬂🬂🬂🬂🬂🬂🬂🬂 %s:%3d 🬂🬂🬂🬂🬂🬂🬂🬂🬂🬂🬂🬂🬂🬂🬂🬂🬂🬂🬂🬂🭀", __func__, __LINE__); \
|
||||
litest_checkpoint(" " __VA_ARGS__); true; }); \
|
||||
i_; \
|
||||
i_ = ({litest_checkpoint("🭦🬭🬭🬭🬭🬭🬭🬭🬭🬭🬭🬭🬭🬭🬭🬭🬭🬭🬭🬭🬭 %s:%3d 🬭🬭🬭🬭🬭🬭🬭🬭🬭🬭🬭🬭🬭🬭🬭🬭🬭🬭🬭🬭🭛", __func__, __LINE__); \
|
||||
false; }))
|
||||
|
||||
/**
|
||||
* litest itself needs the user_data to store some test-suite-specific
|
||||
* information. Tests must not override this pointer, any data they need
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue