static void run_tests () { /* Set a test environment variable. */ if (setenv ("GDB_SELFTEST_ENVIRON", "1", 1) != 0) error (_("Could not set environment variable for testing.")); test_vector_initialization (); test_unset_set_empty_vector (); test_init_from_host_environ (); test_set_unset_reset (); test_vector_clear (); test_reinit_from_host_environ (); /* Get rid of our test variable. We won't need it anymore. */ unsetenv ("GDB_SELFTEST_ENVIRON"); test_set_A_unset_B_unset_A_cannot_find_A_can_find_B (); test_std_move (); test_move_constructor (); test_self_move (); }
/// The canonical main entry point. int main() { return test_vector_initialization() && test_vector_element_access() && test_vector_comparison() && test_vector_addition() && test_vector_subtraction() && test_vector_magnitude() && test_unit_vector() && test_dot_product() ? 0 : -1; }