From f5ccf98c599e4075449a361e2c96e786b2cdb1c5 Mon Sep 17 00:00:00 2001 From: mat tso Date: Thu, 6 Oct 2016 21:04:41 +0200 Subject: [PATCH] Test self sufficiency of tostring.hpp header Signed-off-by: mat tso --- projects/SelfTest/SurrogateCpps/catch_tostring.cpp | 4 ++++ .../CatchSelfTest/CatchSelfTest.xcodeproj/project.pbxproj | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 projects/SelfTest/SurrogateCpps/catch_tostring.cpp diff --git a/projects/SelfTest/SurrogateCpps/catch_tostring.cpp b/projects/SelfTest/SurrogateCpps/catch_tostring.cpp new file mode 100644 index 00000000..8a13ba20 --- /dev/null +++ b/projects/SelfTest/SurrogateCpps/catch_tostring.cpp @@ -0,0 +1,4 @@ +// This file is only here to verify (to the extent possible) the self sufficiency of the header +#include "catch_suppress_warnings.h" +#include "catch_tostring.hpp" +#error diff --git a/projects/XCode/CatchSelfTest/CatchSelfTest.xcodeproj/project.pbxproj b/projects/XCode/CatchSelfTest/CatchSelfTest.xcodeproj/project.pbxproj index d9066cdb..e62958e2 100644 --- a/projects/XCode/CatchSelfTest/CatchSelfTest.xcodeproj/project.pbxproj +++ b/projects/XCode/CatchSelfTest/CatchSelfTest.xcodeproj/project.pbxproj @@ -45,7 +45,8 @@ 4AEE032016142F910071E950 /* catch_common.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4AEE031F16142F910071E950 /* catch_common.cpp */; }; 4AEE032316142FC70071E950 /* catch_debugger.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4AEE032216142FC70071E950 /* catch_debugger.cpp */; }; 4AEE032516142FF10071E950 /* catch_stream.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4AEE032416142FF10071E950 /* catch_stream.cpp */; }; - 4AEE0328161434FD0071E950 /* catch_xmlwriter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4AEE0327161434FD0071E950 /* catch_xmlwriter.cpp */; }; + 4AEE0327161434FD0071E950 /* catch_xmlwriter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4AEE0327161434FD0071E950 /* catch_xmlwriter.cpp */; }; + 4AEE0328161434FD0071E950 /* catch_tostring.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4AEE0327161434FD0071E950 /* catch_tostring.cpp */; }; /* End PBXBuildFile section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -195,6 +196,7 @@ 4AEE032416142FF10071E950 /* catch_stream.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = catch_stream.cpp; path = ../../../SelfTest/SurrogateCpps/catch_stream.cpp; sourceTree = ""; }; 4AEE0326161431070071E950 /* catch_streambuf.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = catch_streambuf.h; sourceTree = ""; }; 4AEE0327161434FD0071E950 /* catch_xmlwriter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = catch_xmlwriter.cpp; path = ../../../SelfTest/SurrogateCpps/catch_xmlwriter.cpp; sourceTree = ""; }; + 4AEE0328161434FD0071E950 /* catch_tostring.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = catch_tostring.cpp; path = ../../../SelfTest/SurrogateCpps/catch_tostring.cpp; sourceTree = ""; }; 4AFC661D157E96A7009D58CF /* catch_interfaces_config.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = catch_interfaces_config.h; sourceTree = ""; }; /* End PBXFileReference section */ @@ -333,6 +335,7 @@ 4AEE032216142FC70071E950 /* catch_debugger.cpp */, 4AEE032416142FF10071E950 /* catch_stream.cpp */, 4AEE0327161434FD0071E950 /* catch_xmlwriter.cpp */, + 4AEE0328161434FD0071E950 /* catch_tostring.cpp */, 4A45DA2316161EF9004F8D6B /* catch_console_colour.cpp */, 4A45DA2616161F1F004F8D6B /* catch_ptr.cpp */, 4A45DA2816161F3D004F8D6B /* catch_streambuf.cpp */, @@ -554,6 +557,7 @@ 263F7A4C19B6FE1E009474C2 /* ToStringContainers.cpp in Sources */, 4AEE032316142FC70071E950 /* catch_debugger.cpp in Sources */, 4AEE032516142FF10071E950 /* catch_stream.cpp in Sources */, + 4AEE0327161434FD0071E950 /* catch_xmlwriter.cpp in Sources */, 4AEE0328161434FD0071E950 /* catch_xmlwriter.cpp in Sources */, 4A45DA2416161EF9004F8D6B /* catch_console_colour.cpp in Sources */, 4A45DA2716161F1F004F8D6B /* catch_ptr.cpp in Sources */,