From 29c5912d1ae37479518482e92a369fad1f9ae8db Mon Sep 17 00:00:00 2001 From: jmmv Date: Sun, 12 Jan 2014 22:17:56 +0000 Subject: [PATCH] MFC r260491: Use .cpp as the extension for temporary C++ files. git-svn-id: svn://svn.freebsd.org/base/stable/10@260578 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- contrib/atf/atf-c++/detail/test_helpers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/atf/atf-c++/detail/test_helpers.cpp b/contrib/atf/atf-c++/detail/test_helpers.cpp index d13b12467..dc35da96b 100644 --- a/contrib/atf/atf-c++/detail/test_helpers.cpp +++ b/contrib/atf/atf-c++/detail/test_helpers.cpp @@ -67,14 +67,14 @@ build_check_cxx_o(const atf::tests::tc& tc, const char* sfile, void header_check(const char *hdrname) { - std::ofstream srcfile("test.c"); + std::ofstream srcfile("test.cpp"); ATF_REQUIRE(srcfile); srcfile << "#include <" << hdrname << ">\n"; srcfile.close(); const std::string failmsg = std::string("Header check failed; ") + hdrname + " is not self-contained"; - build_check_cxx_o_aux(atf::fs::path("test.c"), failmsg.c_str(), true); + build_check_cxx_o_aux(atf::fs::path("test.cpp"), failmsg.c_str(), true); } atf::fs::path -- 2.45.0