summaryrefslogtreecommitdiff
path: root/tests/drm_import_export.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/drm_import_export.c')
-rw-r--r--tests/drm_import_export.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/drm_import_export.c b/tests/drm_import_export.c
index 83e753bf..57b13ddb 100644
--- a/tests/drm_import_export.c
+++ b/tests/drm_import_export.c
@@ -121,7 +121,11 @@ static void start_test(void)
static void * test_thread(void * par)
{
+#ifdef __linux__
igt_debug("start %ld\n", syscall(SYS_gettid));
+#else
+ igt_debug("start %ld\n", (long) pthread_self());
+#endif
start_test();
return NULL;