Monero
Loading...
Searching...
No Matches
gtest_throw_on_failure_test Namespace Reference

Classes

class  ThrowOnFailureTest

Functions

 SetEnvVar (env_var, value)
 Run (command)

Variables

str __author__ = 'wan@google.com (Zhanyong Wan)'
str THROW_ON_FAILURE = 'gtest_throw_on_failure'
 EXE_PATH

Detailed Description

Tests Google Test's throw-on-failure mode with exceptions disabled.

This script invokes gtest_throw_on_failure_test_ (a program written with
Google Test) with different environments and command line flags.

Function Documentation

◆ Run()

gtest_throw_on_failure_test.Run ( command)
Runs a command; returns True/False if its exit code is/isn't 0.

◆ SetEnvVar()

gtest_throw_on_failure_test.SetEnvVar ( env_var,
value )
Sets an environment variable to a given value; unsets it when the
given value is None.

Variable Documentation

◆ __author__

str gtest_throw_on_failure_test.__author__ = 'wan@google.com (Zhanyong Wan)'
private

◆ EXE_PATH

gtest_throw_on_failure_test.EXE_PATH
Initial value:
2 'gtest_throw_on_failure_test_')
GetTestExecutablePath(executable_name, build_dir=None)
Definition gtest_test_utils.py:156

◆ THROW_ON_FAILURE

str gtest_throw_on_failure_test.THROW_ON_FAILURE = 'gtest_throw_on_failure'