zephyr/tests/kernel/multilib/src/multilib.c
Niranjhana N 7e5baf0495 tests: multilib: convert to ztest
- added a ztest test point
- separated the main file into two files:
    - main.c, which has ztest entry
    - multilib.c, which has the original routine

JIRA: ZEP-2382

Signed-off-by: Niranjhana N <niranjhana.n@intel.com>
2017-08-07 22:31:27 -04:00

23 lines
438 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>
void test_multilib(void)
{
volatile long long a = 100;
volatile long long b = 3;
volatile long long c = a / b;
TC_START("test_multilib");
/**TESTPOINT: Check if the correct multilib is selected*/
zassert_equal(c, 33, "smoke-test failed: wrong multilib selected");
}