summaryrefslogtreecommitdiffhomepage
path: root/test/util/test_util.cc
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@google.com>2019-04-26 12:46:14 -0700
committerShentubot <shentubot@google.com>2019-04-26 12:47:46 -0700
commit59442238d4d9e48433cd0601ffa53e280fb872bc (patch)
tree0857202d3ffeb4255d872507c4e6baf9329e4a1e /test/util/test_util.cc
parent5f13338d30fb59241cf7f1aa6374c54c69677314 (diff)
Remove syscall tests' dependency on glog
PiperOrigin-RevId: 245469859 Change-Id: I0610e477cc3a884275852e83028ecfb501f2c039
Diffstat (limited to 'test/util/test_util.cc')
-rw-r--r--test/util/test_util.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/util/test_util.cc b/test/util/test_util.cc
index ebcbca238..9b7cfa4dc 100644
--- a/test/util/test_util.cc
+++ b/test/util/test_util.cc
@@ -25,6 +25,7 @@
#include <unistd.h>
#include <ctime>
+#include <iostream>
#include <vector>
#include "absl/base/attributes.h"
@@ -54,8 +55,8 @@ Platform GvisorPlatform() {
if (strcmp(env, "kvm") == 0) {
return Platform::kKVM;
}
- LOG(FATAL) << "unknown platform " << env;
- __builtin_unreachable();
+ std::cerr << "unknown platform " << env;
+ abort();
}
// Inline cpuid instruction. Preserve %ebx/%rbx register. In PIC compilations
@@ -227,7 +228,7 @@ void SleepSafe(absl::Duration duration) {
uint64_t Megabytes(uint64_t n) {
// Overflow check, upper 20 bits in n shouldn't be set.
- CHECK(!(0xfffff00000000000 & n));
+ TEST_CHECK(!(0xfffff00000000000 & n));
return n << 20;
}