提交 8a51b19b 编写于 作者: F FondMemoryVVV

Modify the format

Signed-off-by: NFondMemoryVVV <mashuai53@huawei.com>
上级 15e0464c
......@@ -23,7 +23,7 @@
using namespace std;
vector<string> filenames;
static vector<std::string> filenames;
vector<std::string> GetFileNames(std::string path)
{
vector<string> tempName;
......
......@@ -27,18 +27,19 @@
#include <sys/time.h>
#include <sys/resource.h>
#include "runtest.h"
#include "gtest/gtest.h"
#include "runtest.h"
using namespace std;
using namespace testing::ext;
using namespace testing;
namespace OHOS {
class toolchaintest : public ::testing::TestWithParam<string> {};
static string filepath = "/data/local/tmp/libc-test/src";
static vector<std::string> temp = GetFileNames(filepath);
static vector<string> temp = GetFileNames(filepath);
volatile int t_status = 0;
static void handler(int s)
......@@ -113,6 +114,7 @@ static int runTests(const char *argvs)
return 1;
}
/**
* @tc.name : toolchaintest.LibcTest
* @tc.desc : start test
......@@ -130,4 +132,5 @@ HWTEST_P(toolchaintest, LibcTest, Function | MediumTest | Level3)
EXPECT_EQ(-1, ret) << "test " << testName << " failed" << endl;
}
}
INSTANTIATE_TEST_CASE_P(libcTest, toolchaintest, testing::ValuesIn(temp.begin(), temp.end()));
\ No newline at end of file
INSTANTIATE_TEST_CASE_P(libcTest, toolchaintest, testing::ValuesIn(temp.begin(), temp.end()));
}// namespace OHOS
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册