/*
- * Copyright 2015 Facebook, Inc.
+ * Copyright 2016 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
using namespace folly;
void fail() {
- FOLLY_SAFE_CHECK(0, "hello");
+ FOLLY_SAFE_CHECK(0 + 0, "hello");
}
void succeed() {
TEST(SafeAssert, AssertionFailure) {
succeed();
- EXPECT_DEATH(fail(), ".*Assertion failure:.*hello.*");
+ EXPECT_DEATH(fail(), "Assertion failure: 0 \\+ 0");
+ EXPECT_DEATH(fail(), "Message: hello");
}