aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/adbd-client-test.cpp
diff options
context:
space:
mode:
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());
}
};