Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(600)

Unified Diff: runtime/vm/os_test.cc

Issue 2666133002: Added new type of unit test, RAW_UNIT_TEST_CASE, which is used for tests that can be flaky if run w… (Closed)
Patch Set: Fixed name of UNIT_TEST_CASE macro Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/object_test.cc ('k') | runtime/vm/snapshot_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/os_test.cc
diff --git a/runtime/vm/os_test.cc b/runtime/vm/os_test.cc
index 2ecc36b1bf929d7d9b219a36f17b864eaf194293..2c314176d0d478a9d8759a5f0d1abcabd3edd7df 100644
--- a/runtime/vm/os_test.cc
+++ b/runtime/vm/os_test.cc
@@ -10,7 +10,7 @@
namespace dart {
-UNIT_TEST_CASE(Sleep) {
+VM_UNIT_TEST_CASE(Sleep) {
// All times measured in microseconds.
int64_t start_time = OS::GetCurrentMonotonicMicros();
int64_t sleep_time = 702000;
@@ -22,7 +22,7 @@ UNIT_TEST_CASE(Sleep) {
}
-UNIT_TEST_CASE(SNPrint) {
+VM_UNIT_TEST_CASE(SNPrint) {
char buffer[256];
int length;
length = OS::SNPrint(buffer, 10, "%s", "foo");
@@ -40,14 +40,14 @@ UNIT_TEST_CASE(SNPrint) {
// This test is expected to crash when it runs.
-UNIT_TEST_CASE(SNPrint_BadArgs) {
+VM_UNIT_TEST_CASE(SNPrint_BadArgs) {
int width = kMaxInt32;
int num = 7;
OS::SNPrint(NULL, 0, "%*d%*d", width, num, width, num);
}
-UNIT_TEST_CASE(OsFuncs) {
+VM_UNIT_TEST_CASE(OsFuncs) {
EXPECT(Utils::IsPowerOfTwo(OS::ActivationFrameAlignment()));
EXPECT(Utils::IsPowerOfTwo(OS::PreferredCodeAlignment()));
int procs = OS::NumberOfAvailableProcessors();
« no previous file with comments | « runtime/vm/object_test.cc ('k') | runtime/vm/snapshot_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698