We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
acl_profiler_test.cpp
1 parent 2834ca2 commit d2337deCopy full SHA for d2337de
test/acl_profiler_test.cpp
@@ -430,7 +430,7 @@ TEST(acl_profile, op_type_checks) {
430
TEST(acl_profile, valid_checks) {
431
acl_device_op_t op;
432
op.info.type = ACL_DEVICE_OP_KERNEL;
433
-
+ memset(op.timestamp, 0, sizeof(op.timestamp));
434
op.info.event = 0;
435
ACL_LOCKED(CHECK(!acl_event_is_valid(op.info.event)));
436
ACL_LOCKED(CHECK(!acl_process_profiler_scan_chain(&op)));
@@ -611,7 +611,8 @@ MT_TEST_GROUP(acl_no_profile) {
611
enum { MAX_DEVICES = 100, m_num_devices_in_context = 3 };
612
void setup() {
613
if (threadNum() == 0) {
614
- remove(PROFILE_MON);
+ // Remove PROFILE_MON if it exists.
615
+ (void)remove(PROFILE_MON);
616
617
acl_test_setup_generic_system();
618
0 commit comments