gtests: resolve collision in same filename for different users 17/4017/1
authorYaroslav Brustinov <[email protected]>
Sat, 26 Nov 2016 12:20:07 +0000 (14:20 +0200)
committerYaroslav Brustinov <[email protected]>
Sat, 26 Nov 2016 12:20:07 +0000 (14:20 +0200)
Signed-off-by: Yaroslav Brustinov <[email protected]>
.gitignore
src/gtest/client_cfg_test.cpp

index 8787f80..0b6832f 100644 (file)
@@ -96,7 +96,7 @@ src/GTAGS
 *.bak
 *.pyc
 __pycache__
-*_GENERATED.py
+*_GENERATED.*
  
 # Packages #
 ############
index 1e84e1d..4e93f3c 100644 (file)
@@ -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) {