Welcome to mirror list, hosted at ThFree Co, Russian Federation.

deathTestCommon.h « tests - github.com/microsoft/GSL.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7bf242393f7bcff62c12cd985a87824f48f7bb0b (plain)
1
2
3
4
5
6
7
8
9
10
11
#pragma once
#include <gsl/assert>

constexpr char deathstring[] = "Expected Death";
constexpr char failed_set_terminate_deathstring[] = ".*";

// This prevents a failed call to set_terminate from failing the test suite.
constexpr const char* GetExpectedDeathString(std::terminate_handler handle)
{
    return handle ? deathstring : failed_set_terminate_deathstring;
}