[libc][NFC] Make test macros callable from helper methods of test classes.
authorSiva Chandra Reddy <sivachandra@google.com>
Wed, 4 Nov 2020 21:09:26 +0000 (13:09 -0800)
committerSiva Chandra Reddy <sivachandra@google.com>
Fri, 6 Nov 2020 00:14:24 +0000 (16:14 -0800)
commit0e3532da98c5aa62582eee9cca07aaf5844b0b90
treefe8bb2ab2fb1d561efcf2b670ac42dfe9449f08f
parent41e74e400dc17cc25a3d69accae3a793e669e2af
[libc][NFC] Make test macros callable from helper methods of test classes.

This is acheived by making the RunContext a state variable of the test
classes.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D90805
libc/utils/UnitTest/Test.cpp
libc/utils/UnitTest/Test.h