From: Yaroslav Brustinov Date: Sat, 26 Nov 2016 12:20:07 +0000 (+0200) Subject: gtests: resolve collision in same filename for different users X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F17%2F4017%2F1;p=trex.git gtests: resolve collision in same filename for different users Signed-off-by: Yaroslav Brustinov --- 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) {