aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/adbd-client-test.cpp
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2016-03-15 14:23:40 -0500
committerCharles Kerr <charles.kerr@canonical.com>2016-03-15 14:23:40 -0500
commit4aeb345821bad91430fe9cdb7244c1135051bd92 (patch)
tree8511b4aee4f526279708dc3098a5ceda84302a62 /tests/unit/adbd-client-test.cpp
parentb3f65b988fe0a646acaee6d3e71a9b1682e0b014 (diff)
downloadayatana-indicator-display-4aeb345821bad91430fe9cdb7244c1135051bd92.tar.gz
ayatana-indicator-display-4aeb345821bad91430fe9cdb7244c1135051bd92.tar.bz2
ayatana-indicator-display-4aeb345821bad91430fe9cdb7244c1135051bd92.zip
in tests/unit/adbd-client-test.cpp, fix tmpl character buffer intialization for g++ 4.9x
Diffstat (limited to 'tests/unit/adbd-client-test.cpp')
-rw-r--r--tests/unit/adbd-client-test.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/unit/adbd-client-test.cpp b/tests/unit/adbd-client-test.cpp
index 6514456..c00c07a 100644
--- a/tests/unit/adbd-client-test.cpp
+++ b/tests/unit/adbd-client-test.cpp
@@ -22,8 +22,6 @@
#include <src/adbd-client.h>
-#include <stdlib.h> // mkdtemp
-
class AdbdClientFixture: public TestDBusFixture
{
private:
@@ -44,8 +42,8 @@ protected:
{
super::SetUp();
- char tmpl[] {"adb-client-test-XXXXXX"};
- m_tmpdir.reset(new std::string{mkdtemp(tmpl)}, file_deleter);
+ char tmpl[] = {"adb-client-test-XXXXXX"};
+ m_tmpdir.reset(new std::string{g_mkdtemp(tmpl)}, file_deleter);
g_message("using tmpdir '%s'", m_tmpdir->c_str());
}
};