Remove hardcoded path for multiuser support
[platform/framework/web/wrt-installer.git] / tests / general / WidgetUpdateTests.cpp
index 064e545..2ee3706 100644 (file)
@@ -23,6 +23,7 @@
 #include <string>
 #include <dpl/test/test_runner.h>
 #include <InstallerWrapper.h>
+#include <tzplatform_config.h>
 #include <fstream>
 
 using namespace InstallerWrapper;
@@ -200,7 +201,7 @@ RUNNER_TEST(updateWidgetDataRemember)
             "Failed to install widget");
 
     // Creating a file
-    std::string filePath = "/opt/usr/apps/HAdisUJ4Kn/data/test";
+    std::string filePath = tzplatform_mkpath(TZ_USER_APP,"HAdisUJ4Kn/data/test");
     std::string text = "slonce swieci dzisiaj wyjatkowo wysoko";
     std::string command = "echo " + text + " > " + filePath;
     system(command.c_str());