self._printed_plan = False # type: bool
self._has_failure = False # type: bool
self._time_tests = True # type: bool
- if os.getenv("TAP_AUTOTIME", "1") == "0":
+ if os.getenv("LTTNG_TESTS_TAP_AUTOTIME", "1") == "0":
self._time_tests = False
self._last_time = _get_time_ns()
# the outputs in the resulting file for half written lines, eg.
# ok 93 - Tes# PERROR - xxxx
# t some function
- if [ "${TAP_AUTOTIME:-}" != 0 ]; then
+ if [ "${LTTNG_TESTS_TAP_AUTOTIME:-}" != 0 ]; then
stdbuf -eL -oL -- "$@"
else
"$@"
setbuf(stdout, 0);
/*
- * Check if the TAP_AUTOTIME environment variable is set and
- * contains at least one byte.
+ * Check if the LTTNG_TESTS_TAP_AUTOTIME environment variable
+ * is set and contains at least one byte.
*/
- const char *autotime_env = getenv("TAP_AUTOTIME");
+ const char *autotime_env = getenv("LTTNG_TESTS_TAP_AUTOTIME");
if (autotime_env != NULL && strnlen(autotime_env, 1)) {
int tap_autotime;
/*
- * Check if TAP_AUTOTIME is '0', also check errno
- * because strtol() can return '0' on error.
+ * Check if LTTNG_TESTS_TAP_AUTOTIME is '0', also check
+ * errno because strtol() can return '0' on error.
*/
errno = 0;
tap_autotime = strtol(autotime_env, NULL, 10);
_expected_tests=0
_executed_tests=0
_failed_tests=0
-_auto_timing="${TAP_AUTOTIME:-1}"
+_auto_timing="${LTTNG_TESTS_TAP_AUTOTIME:-1}"
_last_time=''
TODO=
TIME_SCRIPT="$(realpath -e -- "$(dirname "${BASH_SOURCE[0]}")")/clock"