Replace deprecated tempnam with a constant.

Fixes complaint in 10.9 Mac headers. Even though we were just using tempnam for convenience, we don't really need a randomized filename anyway.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23368 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
John Ralls
2013-11-02 20:50:44 +00:00
parent d14473b707
commit fcd7b2ffbb
@@ -58,7 +58,7 @@ setup (Fixture *fixture, gconstpointer pData)
qof_session_load (fixture->session, NULL);
if (g_strcmp0 (url, "sqlite3") == 0)
fixture->filename = tempnam ("/tmp", "test-sqlite3-");
fixture->filename = "/tmp/test-sqlite3-test";
else
fixture->filename = NULL;
}
@@ -115,7 +115,7 @@ setup_memory (Fixture *fixture, gconstpointer pData)
fixture->session = session;
if (g_strcmp0 (url, "sqlite3") == 0)
fixture->filename = tempnam ("/tmp", "test-sqlite3-");
fixture->filename = "/tmp/test-sqlite3-test";
else
fixture->filename = NULL;
}
@@ -192,7 +192,7 @@ setup_business (Fixture *fixture, gconstpointer pData)
fixture->session = session;
if (g_strcmp0 (url, "sqlite3") == 0)
fixture->filename = tempnam ("/tmp", "test-sqlite3-");
fixture->filename = "/tmp/test-sqlite3-test";
else
fixture->filename = NULL;
}