mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user