summarylogtreecommitdiffstats
path: root/fix-ut.patch
blob: e30b5ced68dbbfbf3cf123d2d4cda5a0357ce0c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
diff --git a/tests/ut_dconfig.cpp b/tests/ut_dconfig.cpp
index 4cf17b9..b55f566 100644
--- a/tests/ut_dconfig.cpp
+++ b/tests/ut_dconfig.cpp
@@ -29,6 +29,9 @@
 
 DCORE_USE_NAMESPACE
 
+static constexpr char const *APP_ID = "tests";
+static constexpr char const *FILE_NAME = "example";
+
 class ut_DConfig : public testing::Test
 {
 protected:
@@ -50,8 +53,7 @@ protected:
     static EnvGuard backendType;
     static EnvGuard fileBackendLocalPerfix;
     static FileCopyGuard *metaGuard;
-    static constexpr char const *APP_ID = "tests";
-    static constexpr char const *FILE_NAME = "example";
+
 };
 EnvGuard ut_DConfig::fileBackendLocalPerfix;
 EnvGuard ut_DConfig::backendType;
diff --git a/tests/ut_dconfigfile.cpp b/tests/ut_dconfigfile.cpp
index da185b2..728d4e0 100644
--- a/tests/ut_dconfigfile.cpp
+++ b/tests/ut_dconfigfile.cpp
@@ -29,6 +29,8 @@
 
 DCORE_USE_NAMESPACE
 
+static constexpr char const *LocalPrefix = "/tmp/example";
+
 class ut_DConfigFile : public testing::Test
 {
 protected:
@@ -42,7 +44,7 @@ protected:
     }
     virtual void TearDown() override;
 
-    static constexpr char const *LocalPrefix = "/tmp/example";
+
 
     const char *APP_ID = "org.foo.appid";
     const char *FILE_NAME = "org.foo.name";