mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Sandbox2: Check for substring in CRC4 test
PiperOrigin-RevId: 442793060 Change-Id: If2483e13a9bdab5803e949bc4b568caa9569a818
This commit is contained in:
parent
418c73b128
commit
456d9f341e
|
@ -30,7 +30,7 @@ namespace {
|
|||
|
||||
using ::sapi::GetTestSourcePath;
|
||||
using ::testing::Eq;
|
||||
using ::testing::StrEq;
|
||||
using ::testing::HasSubstr;
|
||||
|
||||
class CRC4Test : public ::testing::Test {
|
||||
protected:
|
||||
|
@ -51,7 +51,7 @@ TEST_F(CRC4Test, TestNormalOperation) {
|
|||
int exit_code,
|
||||
util::Communicate({path_, "-input", "ABCD"}, env_, &output));
|
||||
|
||||
EXPECT_THAT(output, StrEq("0x44434241\n"));
|
||||
EXPECT_THAT(output, HasSubstr("0x44434241\n"));
|
||||
EXPECT_THAT(exit_code, Eq(0));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user