Update prv_register in tests
This commit is contained in:
		
							parent
							
								
									4a8255e227
								
							
						
					
					
						commit
						0e8b23c918
					
				| @ -31,7 +31,7 @@ test_emit(const char *path) | ||||
| 	} | ||||
| 
 | ||||
| 	for (int i = 0; i < NROWS; i++) | ||||
| 		if (prv_register(&prv, i, type, &bay, &chan[i]) != 0) | ||||
| 		if (prv_register(&prv, i, type, &bay, &chan[i], 0) != 0) | ||||
| 			die("prv_register failed\n"); | ||||
| 
 | ||||
| 	for (int i = 0; i < NROWS; i++) | ||||
| @ -80,7 +80,7 @@ test_duplicate(const char *path) | ||||
| 	if (bay_register(&bay, &chan) != 0) | ||||
| 		die("bay_register failed\n"); | ||||
| 
 | ||||
| 	if (prv_register(&prv, 0, type, &bay, &chan) != 0) | ||||
| 	if (prv_register(&prv, 0, type, &bay, &chan, 0) != 0) | ||||
| 		die("prv_register failed\n"); | ||||
| 
 | ||||
| 	if (chan_set(&chan, value_int64(1000)) != 0) | ||||
|  | ||||
| @ -19,5 +19,11 @@ main(void) | ||||
| 
 | ||||
| 	err("OK\n"); | ||||
| 
 | ||||
| 	a = value_null(); | ||||
| 	b = value_null(); | ||||
| 
 | ||||
| 	if (!value_is_equal(&a, &b)) | ||||
| 		die("null not equal"); | ||||
| 
 | ||||
| 	return 0; | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user