MCPcopy Create free account
hub / github.com/MailCore/mailcore2 / temporaryFilenameForTest

Function temporaryFilenameForTest

tests/test-all.cpp:68–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66};
67
68static mailcore::String * temporaryFilenameForTest()
69{
70 char tempfile[] = "/tmp/mailcore2-test-XXXXXX";
71 char * result = mktemp(tempfile);
72 if (result == NULL) {
73 return NULL;
74 }
75 return mailcore::String::stringWithFileSystemRepresentation(tempfile);
76}
77
78static mailcore::Data * testMessageBuilder()
79{

Calls

no outgoing calls

Tested by

no test coverage detected