mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 15:12:56 +08:00
refactor: add timestamps to xe logs
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a915ef4b7b
commit
9a280892f8
@@ -1731,10 +1731,11 @@ TEST(IoctlHelperXeTest, whenXeShowBindTableIsCalledThenBindLogsArePrinted) {
|
||||
debugManager.flags.PrintXeLogs.set(false);
|
||||
|
||||
std::string output = testing::internal::GetCapturedStderr();
|
||||
std::string expectedOutput = R"(show bind: (<index> <handle> <userptr> <addr> <size>)
|
||||
0 x00000001 x0000000000000002 x0000000000000003 x0000000000000004
|
||||
)";
|
||||
EXPECT_STREQ(expectedOutput.c_str(), output.c_str());
|
||||
std::string expectedOutput1 = "show bind: (<index> <handle> <userptr> <addr> <size>)\n";
|
||||
std::string expectedOutput2 = "0 x00000001 x0000000000000002 x0000000000000003 x0000000000000004";
|
||||
|
||||
EXPECT_NE(std::string::npos, output.find(expectedOutput1));
|
||||
EXPECT_NE(std::string::npos, output.find(expectedOutput2, expectedOutput1.size()));
|
||||
}
|
||||
|
||||
TEST(IoctlHelperXeTest, whenFillBindInfoForIpcHandleIsCalledThenBindInfoIsCorrect) {
|
||||
|
||||
Reference in New Issue
Block a user