Update UnitTestFileGenerator.h
parent
2beab55a4e
commit
718c517dcd
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue