summaryrefslogtreecommitdiff
path: root/lib/drmtest.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-12 11:57:32 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-12 11:57:32 +0200
commit16024841a12f71d52aea12603d9fb1cb63124fb6 (patch)
tree34e3f3ad7f91d527aeaff85b3bc6adfc23b85b24 /lib/drmtest.h
parentd65d19d4f4ad98af42c628f3a81d273ce6ac4e5a (diff)
lib/drmtest: __ prefix for drmtest_run_subtest
Now that callers must setup the longjmp target (we can't do that in run_subtest itself since that callframe won't survive) tests shouldn't call this function directly any more. Make this clear by adding a __ prefix. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/drmtest.h')
-rw-r--r--lib/drmtest.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/drmtest.h b/lib/drmtest.h
index b6874117e..0182e09cd 100644
--- a/lib/drmtest.h
+++ b/lib/drmtest.h
@@ -98,8 +98,8 @@ void drmtest_progress(const char *header, uint64_t i, uint64_t total);
/* subtest infrastructure */
jmp_buf drmtest_subtest_jmpbuf;
void drmtest_subtest_init(int argc, char **argv);
-bool drmtest_run_subtest(const char *subtest_name);
-#define drmtest_subtest_block(name) for (; drmtest_run_subtest((name)) && \
+bool __drmtest_run_subtest(const char *subtest_name);
+#define drmtest_subtest_block(name) for (; __drmtest_run_subtest((name)) && \
(setjmp(drmtest_subtest_jmpbuf) == 0); \
drmtest_success())
bool drmtest_only_list_subtests(void);