提交 8d7ccc8c 编写于 作者: R969857396's avatar R969857396 提交者: Gitee

update startup_lite/syspara_posix/src/ParameterTest.cpp.

L1 linux xts 测试用例 `//test/xts/acts/startup_lite/syspara_posix:ActsParameterTest` 中参数的存储路径是`/data/system/param/`, 但是 `//base/startup/syspara_lite/frameworks/parameter/src/param_impl_posix/param_impl_posix.c` 中定义的参数存储路径为`/storage/data/system/param/`,两者不一致,导致测试测试用例失败。

现将测试用例中的参数存储路径改为 param 组件中定义的路径,两者保持一致。
Signed-off-by: R969857396's avatarLuo Xiaogang <lxgrxd@163.com>
上级 7d6deff8
...@@ -28,9 +28,10 @@ class ParameterTest : public testing::Test { ...@@ -28,9 +28,10 @@ class ParameterTest : public testing::Test {
protected: protected:
static void SetUpTestCase(void) static void SetUpTestCase(void)
{ {
mkdir("/data", S_IRUSR | S_IWUSR); mkdir("/storage", S_IRUSR | S_IWUSR);
mkdir("/data/system", S_IRUSR | S_IWUSR); mkdir("/storage/data", S_IRUSR | S_IWUSR);
mkdir("/data/system/param", S_IRUSR | S_IWUSR); mkdir("/storage/data/system", S_IRUSR | S_IWUSR);
mkdir("/storage/data/system/param", S_IRUSR | S_IWUSR);
} }
static void TearDownTestCase(void) {} static void TearDownTestCase(void) {}
virtual void SetUp() {} virtual void SetUp() {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册