aboutsummaryrefslogtreecommitdiff
path: root/src/test/tinytest.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-02-13 17:45:15 -0500
committerNick Mathewson <nickm@torproject.org>2012-02-13 17:45:15 -0500
commit9efee31fae1584c108a31fa407e32cc271d9bf10 (patch)
tree9770b4765ef28a7baed2526db26c864acf825772 /src/test/tinytest.h
parent3b47a11654e4a4fe4931cb7fdce08b75ac667be1 (diff)
downloadtor-9efee31fae1584c108a31fa407e32cc271d9bf10.tar
tor-9efee31fae1584c108a31fa407e32cc271d9bf10.tar.gz
Synchronize with upstream tinytest again: remove _identifiers
Diffstat (limited to 'src/test/tinytest.h')
-rw-r--r--src/test/tinytest.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/tinytest.h b/src/test/tinytest.h
index 7ce7858e6..bcac9f079 100644
--- a/src/test/tinytest.h
+++ b/src/test/tinytest.h
@@ -23,15 +23,15 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef _TINYTEST_H
-#define _TINYTEST_H
+#ifndef TINYTEST_H_INCLUDED_
+#define TINYTEST_H_INCLUDED_
/** Flag for a test that needs to run in a subprocess. */
#define TT_FORK (1<<0)
/** Runtime flag for a test we've decided to skip. */
#define TT_SKIP (1<<1)
/** Internal runtime flag for a test we've decided to run. */
-#define _TT_ENABLED (1<<2)
+#define TT_ENABLED_ (1<<2)
/** If you add your own flags, make them start at this point. */
#define TT_FIRST_USER_FLAG (1<<3)
@@ -65,18 +65,18 @@ struct testgroup_t {
#define END_OF_GROUPS { NULL, NULL}
/** Implementation: called from a test to indicate failure, before logging. */
-void _tinytest_set_test_failed(void);
+void tinytest_set_test_failed_(void);
/** Implementation: called from a test to indicate that we're skipping. */
-void _tinytest_set_test_skipped(void);
+void tinytest_set_test_skipped_(void);
/** Implementation: return 0 for quiet, 1 for normal, 2 for loud. */
-int _tinytest_get_verbosity(void);
+int tinytest_get_verbosity_(void);
/** Implementation: Set a flag on tests matching a name; returns number
* of tests that matched. */
-int _tinytest_set_flag(struct testgroup_t *, const char *, unsigned long);
+int tinytest_set_flag_(struct testgroup_t *, const char *, unsigned long);
/** Set all tests in 'groups' matching the name 'named' to be skipped. */
#define tinytest_skip(groups, named) \
- _tinytest_set_flag(groups, named, TT_SKIP)
+ tinytest_set_flag_(groups, named, TT_SKIP)
/** Run a single testcase in a single group. */
int testcase_run_one(const struct testgroup_t *,const struct testcase_t *);