projects
/
platform
/
core
/
uifw
/
libds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13acba1
)
tests: enable setting DEFAULT_XDG_RUNTIME_DIR environment variable
57/242957/1
author
Sung-Jin Park
<sj76.park@samsung.com>
Wed, 2 Sep 2020 01:36:28 +0000
(10:36 +0900)
committer
Sung-Jin Park
<sj76.park@samsung.com>
Wed, 2 Sep 2020 05:24:01 +0000
(14:24 +0900)
Change-Id: I77d4b07286501ba296affb4a3eb918f2a642545b
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
tests/libds-tests.cpp
patch
|
blob
|
history
diff --git
a/tests/libds-tests.cpp
b/tests/libds-tests.cpp
index
6446522
..
1fd6b75
100644
(file)
--- a/
tests/libds-tests.cpp
+++ b/
tests/libds-tests.cpp
@@
-27,12
+27,16
@@
int main(int argc, char **argv)
{
+ char *strEnv = nullptr;
auto AllTestSuccess = false;
#ifdef TIZEN_TEST_GCOV
setenv("GCOV_PREFIX", "/tmp", 1);
#endif
- setenv("DEFAULT_XDG_RUNTIME_DIR", "/tmp", 1);
+ strEnv = getenv("DEFAULT_XDG_RUNTIME_DIR");
+ if (!strEnv) {
+ setenv("DEFAULT_XDG_RUNTIME_DIR", "/tmp", 1);
+ }
try {
::testing::InitGoogleMock(&argc, argv);