zephyr/tests/kernel/common/src/multilib.c
Spoorthi K bffae85488 tests: kernel: Add description for common and interrrupt
Add test description, RTM links and doxygen links for common,
    interrupt and boot page table test cases.

Signed-off-by: Spoorthi K <spoorthi.k@intel.com>
2018-07-18 06:52:18 -04:00

32 lines
472 B
C

/*
* Copyright (c) 2016 Linaro Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <errno.h>
#include <tc_util.h>
#include <ztest.h>
/**
* @addtogroup kernel_common_tests
* @{
*/
/**
* @brief Test if correct multilib is selected
*
*/
void test_multilib(void)
{
volatile long long a = 100;
volatile long long b = 3;
volatile long long c = a / b;
zassert_equal(c, 33, "smoke-test failed: wrong multilib selected");
}
/**
* @}
*/