summaryrefslogtreecommitdiff
path: root/test-mktemp.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-02-10 00:41:16 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-02-10 00:41:16 (GMT)
commit70ec8687a66eb7d3b273d9a7996fab309d2b0974 (patch)
tree0399e03a1c664f6b02ed36b080eca5b3ac00196d /test-mktemp.c
parent06938a37dca9bb19784c1bd41e90c99a7c8f8e5e (diff)
parent6cf6bb3e47ac2f667fa0b27a4222e903ff6fb77c (diff)
downloadgit-70ec8687a66eb7d3b273d9a7996fab309d2b0974.zip
git-70ec8687a66eb7d3b273d9a7996fab309d2b0974.tar.gz
git-70ec8687a66eb7d3b273d9a7996fab309d2b0974.tar.bz2
Merge branch 'ae/better-template-failure-report'
* ae/better-template-failure-report: Improve error messages when temporary file creation fails
Diffstat (limited to 'test-mktemp.c')
-rw-r--r--test-mktemp.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/test-mktemp.c b/test-mktemp.c
new file mode 100644
index 0000000..c8c5421
--- /dev/null
+++ b/test-mktemp.c
@@ -0,0 +1,14 @@
+/*
+ * test-mktemp.c: code to exercise the creation of temporary files
+ */
+#include "git-compat-util.h"
+
+int main(int argc, char *argv[])
+{
+ if (argc != 2)
+ usage("Expected 1 parameter defining the temporary file template");
+
+ xmkstemp(xstrdup(argv[1]));
+
+ return 0;
+}