Skip to content

Commit

Permalink
Improved unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
edeiana committed Oct 9, 2024
1 parent 4aac7ec commit 679b8ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clients/drcachesim/tests/record_filter_unit_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ test_invalidate_cpu_filter()
{ { TRACE_TYPE_MARKER, TRACE_MARKER_TYPE_CPU_ID, { 0x8 } }, true, { false } },
// invalidate_cpu_filter overwrites the value of TRACE_MARKER_TYPE_CPU_ID with
// (uintptr_t)-1.
{ { TRACE_TYPE_MARKER, TRACE_MARKER_TYPE_CPU_ID, { 0xffffffffffffffff } },
{ { TRACE_TYPE_MARKER, TRACE_MARKER_TYPE_CPU_ID, { INVALID_CPU_MARKER_VALUE } },
false,
{ true } },
/* We need at least one instruction with encodings to make record_filter output
Expand Down
2 changes: 1 addition & 1 deletion clients/drcachesim/tools/filter/invalidate_cpu_filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

#include <cstring>

#define INVALID_CPU_MARKER_VALUE ~((addr_t)0UL)
#define INVALID_CPU_MARKER_VALUE ((uintptr_t) - 1)

namespace dynamorio {
namespace drmemtrace {
Expand Down

0 comments on commit 679b8ab

Please sign in to comment.