From 30bca83897730ca9f68d86127a983990966c34ef Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Sat, 26 Nov 2016 14:20:07 +0200 Subject: gtests: resolve collision in same filename for different users Signed-off-by: Yaroslav Brustinov --- .gitignore | 2 +- src/gtest/client_cfg_test.cpp | 2 +- 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) { -- cgit 1.2.3-korg