74c9c0e7a3
Prior to #41602, due to the ordering of operations (first mul, then div), an intermediate value would overflow, resulting in a time non-linearity. This test ensures that time rolls-over properly. Signed-off-by: Chris Friedt <cfriedt@meta.com>
11 lines
273 B
CMake
11 lines
273 B
CMake
# Copyright 2022 Meta
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
cmake_minimum_required(VERSION 3.20.0)
|
|
|
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
project(time_units)
|
|
|
|
FILE(GLOB app_sources *.c)
|
|
target_sources(testbinary PRIVATE ${app_sources})
|