| 1 |
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 2 |
// SPDX-License-Identifier: Apache-2.0 OR ISC |
| 3 |
|
| 4 |
#[test] |
| 5 |
fn test_fips_mode() { |
| 6 |
unsafe { |
| 7 |
assert_eq!(aws_lc_sys::FIPS_mode(), 0); |
| 8 |
} |
| 9 |
} |
| 10 |
|
| 11 |
#[test] |
| 12 |
fn error_checking() { |
| 13 |
unsafe { |
| 14 |
let error = aws_lc_sys::ERR_get_error(); |
| 15 |
let err_lib = aws_lc_sys::ERR_GET_LIB(error); |
| 16 |
let err_reason = aws_lc_sys::ERR_GET_REASON(error); |
| 17 |
let err_func = aws_lc_sys::ERR_GET_FUNC(error); |
| 18 |
assert_eq!(err_lib, 0); |
| 19 |
assert_eq!(err_reason, 0); |
| 20 |
assert_eq!(err_func, 0); |
| 21 |
} |
| 22 |
} |