2010-12-18 22:28:00 +01:00
|
|
|
/*
|
|
|
|
* test-mktemp.c: code to exercise the creation of temporary files
|
|
|
|
*/
|
2018-03-24 08:44:47 +01:00
|
|
|
#include "test-tool.h"
|
2010-12-18 22:28:00 +01:00
|
|
|
#include "git-compat-util.h"
|
|
|
|
|
2018-03-24 08:44:47 +01:00
|
|
|
int cmd__mktemp(int argc, const char **argv)
|
2010-12-18 22:28:00 +01:00
|
|
|
{
|
|
|
|
if (argc != 2)
|
|
|
|
usage("Expected 1 parameter defining the temporary file template");
|
|
|
|
|
|
|
|
xmkstemp(xstrdup(argv[1]));
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|