diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/igt_core.c | 5 | ||||
| -rw-r--r-- | lib/igt_core.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/igt_core.c b/lib/igt_core.c index 61b3a338..7c68d4eb 100644 --- a/lib/igt_core.c +++ b/lib/igt_core.c @@ -248,6 +248,11 @@ static struct { } log_buffer; static pthread_mutex_t log_buffer_mutex = PTHREAD_MUTEX_INITIALIZER; +const char *igt_test_name(void) +{ + return command_str; +} + static void _igt_log_buffer_append(char *line) { pthread_mutex_lock(&log_buffer_mutex); diff --git a/lib/igt_core.h b/lib/igt_core.h index 07160009..33f89406 100644 --- a/lib/igt_core.h +++ b/lib/igt_core.h @@ -202,6 +202,7 @@ bool igt_only_list_subtests(void); static void igt_tokencat(__real_main, __LINE__)(void) \ +const char *igt_test_name(void); void igt_simple_init_parse_opts(int *argc, char **argv, const char *extra_short_opts, struct option *extra_long_opts, |
