Update UnitTestFileGenerator.h

kimkulling/add_windows_clang_issue-5519
Kim Kulling 2024-04-18 14:54:25 +02:00 committed by GitHub
parent 2beab55a4e
commit 718c517dcd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# endif # endif
#include <io.h> #include <io.h>
inline FILE* MakeTmpFile(char* tmplate) { inline FILE* MakeTmpFile(char* tmplate) {
auto pathtemplate = template; char *pathtemplate = tmplate;
int err = _mktemp_s(pathtemplate, std::strlen(pathtemplate)); int err = _mktemp_s(pathtemplate, std::strlen(pathtemplate));
EXPECT_EQ(err, 0); EXPECT_EQ(err, 0);
EXPECT_NE(pathtemplate, nullptr); EXPECT_NE(pathtemplate, nullptr);