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

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)

Created:
3 years, 10 months ago by bkonyi
Modified:
3 years, 10 months ago
Reviewers:
Cutch, rmacnak
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Added new type of unit test, RAW_UNIT_TEST_CASE, which is used for tests that can be flaky if run while the VM is alive. Tests created using the RAW_UNIT_TEST_CASE macro will run after the VM has shutdown to avoid having any worker threads contaminating the test results. BUG= R=johnmccutchan@google.com Committed: https://github.com/dart-lang/sdk/commit/f2fd150ea04bc33976ca2fc4bdbf15655eabe207

Patch Set 1 #

Patch Set 2 : Updated vm status file to not allow MallocHooks test failures. #

Patch Set 3 : Updated comment in test file. #

Total comments: 5

Patch Set 4 : Renamed unit test macros to better represent what each type of test actually does. #

Total comments: 4

Patch Set 5 : Fixed name of UNIT_TEST_CASE macro #

Unified diffs Side-by-side diffs Delta from patch set Stats (+286 lines, -241 lines) Patch
M runtime/bin/directory_test.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/eventhandler_test.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/hashmap_test.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/run_vm_tests.cc View 3 chunks +9 lines, -0 lines 0 comments Download
M runtime/tests/vm/vm.status View 1 1 chunk +0 lines, -4 lines 0 comments Download
M runtime/vm/allocation_test.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/assert_test.cc View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M runtime/vm/atomic_test.cc View 1 2 3 5 chunks +7 lines, -7 lines 0 comments Download
M runtime/vm/bitfield_test.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/boolfield_test.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/compiler_test.cc View 1 2 3 5 chunks +5 lines, -5 lines 0 comments Download
M runtime/vm/cpu_test.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/cpuinfo_test.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/custom_isolate_test.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 1 2 3 15 chunks +16 lines, -16 lines 0 comments Download
M runtime/vm/debugger_api_impl_test.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/find_code_object_test.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flags_test.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_builder_test.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/heap_test.cc View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download
M runtime/vm/isolate_test.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/malloc_hooks_test.cc View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/memory_region_test.cc View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/message_handler_test.cc View 1 2 3 9 chunks +9 lines, -9 lines 0 comments Download
M runtime/vm/metrics_test.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/object_graph_test.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/object_id_ring_test.cc View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/object_test.cc View 1 2 3 78 chunks +79 lines, -79 lines 0 comments Download
M runtime/vm/os_test.cc View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/snapshot_test.cc View 1 2 3 15 chunks +15 lines, -15 lines 0 comments Download
M runtime/vm/stack_frame_test.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/thread_barrier_test.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/thread_pool_test.cc View 1 2 3 6 chunks +6 lines, -6 lines 0 comments Download
M runtime/vm/thread_test.cc View 1 2 3 10 chunks +10 lines, -10 lines 0 comments Download
M runtime/vm/unit_test.h View 1 2 3 4 8 chunks +37 lines, -11 lines 0 comments Download
M runtime/vm/unit_test.cc View 2 chunks +16 lines, -2 lines 0 comments Download
M runtime/vm/utils_test.cc View 1 2 3 15 chunks +16 lines, -16 lines 0 comments Download
M runtime/vm/verified_memory_test.cc View 1 2 3 6 chunks +6 lines, -6 lines 0 comments Download
M runtime/vm/virtual_memory_test.cc View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/zone_test.cc View 1 2 3 6 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
bkonyi
https://codereview.chromium.org/2666133002/diff/40001/runtime/bin/run_vm_tests.cc File runtime/bin/run_vm_tests.cc (right): https://codereview.chromium.org/2666133002/diff/40001/runtime/bin/run_vm_tests.cc#newcode133 runtime/bin/run_vm_tests.cc:133: TestCaseBase::RunAllRaw(); The raw tests are run after the VM ...
3 years, 10 months ago (2017-01-31 20:59:50 UTC) #2
Cutch
+Ryan Macnak Based on discussions we had with Ryan I think the correct renaming is: ...
3 years, 10 months ago (2017-01-31 21:35:53 UTC) #4
rmacnak
+1 on macro renames https://codereview.chromium.org/2666133002/diff/40001/runtime/bin/run_vm_tests.cc File runtime/bin/run_vm_tests.cc (right): https://codereview.chromium.org/2666133002/diff/40001/runtime/bin/run_vm_tests.cc#newcode45 runtime/bin/run_vm_tests.cc:45: fprintf(stdout, "Running test: %s\n", name()); ...
3 years, 10 months ago (2017-01-31 21:43:42 UTC) #5
bkonyi
I've updated the macro names to the ones in an earlier comment. Would it make ...
3 years, 10 months ago (2017-01-31 22:14:35 UTC) #6
rmacnak
https://codereview.chromium.org/2666133002/diff/40001/runtime/bin/run_vm_tests.cc File runtime/bin/run_vm_tests.cc (right): https://codereview.chromium.org/2666133002/diff/40001/runtime/bin/run_vm_tests.cc#newcode45 runtime/bin/run_vm_tests.cc:45: fprintf(stdout, "Running test: %s\n", name()); On 2017/01/31 22:14:35, bkonyi ...
3 years, 10 months ago (2017-01-31 22:44:39 UTC) #7
Cutch
https://codereview.chromium.org/2666133002/diff/60001/runtime/vm/unit_test.h File runtime/vm/unit_test.h (right): https://codereview.chromium.org/2666133002/diff/60001/runtime/vm/unit_test.h#newcode34 runtime/vm/unit_test.h:34: #define RAW_VM_UNIT_TEST_CASE(name) \ UNIT_TEST_CASE
3 years, 10 months ago (2017-01-31 22:47:35 UTC) #8
bkonyi
https://codereview.chromium.org/2666133002/diff/40001/runtime/bin/run_vm_tests.cc File runtime/bin/run_vm_tests.cc (right): https://codereview.chromium.org/2666133002/diff/40001/runtime/bin/run_vm_tests.cc#newcode45 runtime/bin/run_vm_tests.cc:45: fprintf(stdout, "Running test: %s\n", name()); On 2017/01/31 22:44:39, rmacnak ...
3 years, 10 months ago (2017-01-31 22:57:19 UTC) #9
Cutch
lgtm
3 years, 10 months ago (2017-01-31 23:03:08 UTC) #10
bkonyi
3 years, 10 months ago (2017-01-31 23:16:46 UTC) #12
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
f2fd150ea04bc33976ca2fc4bdbf15655eabe207 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698