provisioning: Use .tmp suffix for test file
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Fri, 18 Aug 2017 12:36:45 +0000 (14:36 +0200)
committerRandeep Singh <randeep.s@samsung.com>
Fri, 22 Sep 2017 10:03:05 +0000 (10:03 +0000)
We can use .tmp suffix for generated files to be ignored in git repo

Bug: https://jira.iotivity.org/browse/IOT-2599
Change-Id: I70d109e590784777a0ce2a87fa7451676bad20e8
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21999
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Mats Wichmann <mats@linux.com>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
(cherry picked from commit a8abd0026c9fc8c8e6679202168f79c6206eff72)

resource/provisioning/unittests/OCProvisioningTest.cpp

index 760ad37eb7d0041a7ff11c14603bb767d35946da..b000d1d3528004473343991ef0a7781efa6f6275 100644 (file)
@@ -49,7 +49,7 @@ namespace OCProvisioningTest
 
     TEST(ProvisionInitTest, TestValidPath)
     {
-        std::string dbPath("./dbPath");
+        std::string dbPath("./dbPath.tmp");
         EXPECT_EQ(OC_STACK_OK, OCSecure::provisionInit(dbPath));
         EXPECT_EQ(OC_STACK_OK, OCSecure::provisionClose());
     }