summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-11-26 14:20:07 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2016-11-26 14:20:07 +0200
commit30bca83897730ca9f68d86127a983990966c34ef (patch)
treeae48b71d7821317270c44a7594c3d50f4a95b118
parente49bb38f542262f0bd3ec34ff8cdda1da8a32531 (diff)
gtests: resolve collision in same filename for different users
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
-rw-r--r--.gitignore2
-rw-r--r--src/gtest/client_cfg_test.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 8787f80e..0b6832f1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -96,7 +96,7 @@ src/GTAGS
*.bak
*.pyc
__pycache__
-*_GENERATED.py
+*_GENERATED.*
# Packages #
############
diff --git a/src/gtest/client_cfg_test.cpp b/src/gtest/client_cfg_test.cpp
index 1e84e1d5..4e93f3c5 100644
--- a/src/gtest/client_cfg_test.cpp
+++ b/src/gtest/client_cfg_test.cpp
@@ -60,7 +60,7 @@ TEST_F(basic_client_cfg, test1) {
CGlobalInfo::m_options.m_expected_portd = 4;
printf("Expected ports %d\n", CGlobalInfo::m_options.m_expected_portd);
- std::string tmp_file_name = "/tmp/client_cfg_gtest.yaml";
+ std::string tmp_file_name = "client_cfg_gtest_GENERATED.yaml";
FILE *fd = fopen(tmp_file_name.c_str(), "w");
if (fd == NULL) {