Commit 8328fb0
committed
ztest: math: reference cmocka trig_tables.h instead of copying it
The ztest trigonometry suite had a local copy of
test/cmocka/include/trig_tables.h. This was a mistake: when the legacy
CMock tests are eventually removed, the original header will disappear
losing git history.
Fix this by:
- Deleting the duplicate trig_tables.h from the ztest directory
- Adding test/cmocka/include to the CMakeLists include path so the
ztest suite references the single source-of-truth header directly
- Moving tolerance constants that were defined in the local copy into
trig_test.c, where they are actually used
With this change, any future rename or move of the CMock header will be
handled in one place and the ztest suite will follow automatically.
Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>1 parent 0a7e671 commit 8328fb0
3 files changed
Lines changed: 11 additions & 373 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
0 commit comments