File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -430,7 +430,7 @@ TEST(acl_profile, op_type_checks) {
430
430
TEST (acl_profile, valid_checks) {
431
431
acl_device_op_t op;
432
432
op.info .type = ACL_DEVICE_OP_KERNEL;
433
-
433
+ memset (op. timestamp , 0 , sizeof ( int ) * 4 );
434
434
op.info .event = 0 ;
435
435
ACL_LOCKED (CHECK (!acl_event_is_valid (op.info .event )));
436
436
ACL_LOCKED (CHECK (!acl_process_profiler_scan_chain (&op)));
@@ -611,7 +611,9 @@ MT_TEST_GROUP(acl_no_profile) {
611
611
enum { MAX_DEVICES = 100 , m_num_devices_in_context = 3 };
612
612
void setup () {
613
613
if (threadNum () == 0 ) {
614
- remove (PROFILE_MON);
614
+ // Remove PROFILE_MON if it exists. We don't care if this call passes or
615
+ // not since we just want to guarantee that PROFILE_MON is gone.
616
+ (void )remove (PROFILE_MON);
615
617
616
618
acl_test_setup_generic_system ();
617
619
You can’t perform that action at this time.
0 commit comments