Skip to content

Commit

Permalink
squash! test: fix DebugSymbolsTest.ReqWrapList on PPC64LE
Browse files Browse the repository at this point in the history
Fix cpp formatting.
  • Loading branch information
danbev committed Aug 22, 2022
1 parent 7a40859 commit c416d0c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/cctest/test_node_postmortem_metadata.cc
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ TEST_F(DebugSymbolsTest, ReqWrapList) {
volatile uintptr_t head =
queue +
nodedbg_offset_Environment_ReqWrapQueue__head___ListNode_ReqWrapQueue;
volatile uintptr_t tail = head +
nodedbg_offset_ListNode_ReqWrap__prev___uintptr_t;
volatile uintptr_t tail =
head + nodedbg_offset_ListNode_ReqWrap__prev___uintptr_t;
tail = *reinterpret_cast<uintptr_t*>(tail);

auto obj_template = v8::FunctionTemplate::New(isolate_);
Expand All @@ -196,8 +196,8 @@ TEST_F(DebugSymbolsTest, ReqWrapList) {
// ARM64 CI machinies.
for (auto it : *(*env)->req_wrap_queue()) (void) &it;

volatile uintptr_t last = tail +
nodedbg_offset_ListNode_ReqWrap__next___uintptr_t;
volatile uintptr_t last =
tail + nodedbg_offset_ListNode_ReqWrap__next___uintptr_t;
last = *reinterpret_cast<uintptr_t*>(last);

volatile uintptr_t expected = reinterpret_cast<uintptr_t>(&obj);
Expand Down

0 comments on commit c416d0c

Please sign in to comment.