Remove hardcoded path for multiuser support
[platform/framework/web/wrt-installer.git] / tests / general / NonRootUserTests.cpp
index bd01cc8..b59b004 100644 (file)
@@ -24,6 +24,7 @@
 #include <string>
 #include <dpl/test/test_runner.h>
 #include <InstallerWrapper.h>
+#include <tzplatform_config.h>
 
 using namespace InstallerWrapper;
 
@@ -42,6 +43,6 @@ RUNNER_TEST(widgetNonRootInstallation)
     RUNNER_ASSERT(install(
                 miscWidgetsStuff + "widgets/nonroot.wgt",
                 tizenId,
-                "app") == InstallerWrapper::Success);
+                tzplatform_getname(TZ_USER_NAME)) == InstallerWrapper::Success);
     uninstall(tizenId);
 }