Skip to content

Add sonic_api_test.c to tests/Makefile's TEST_SRC - #72

Open
austek wants to merge 1 commit into
waywardgeek:masterfrom
ZirekHQ:fix/tests-makefile-gap
Open

Add sonic_api_test.c to tests/Makefile's TEST_SRC#72
austek wants to merge 1 commit into
waywardgeek:masterfrom
ZirekHQ:fix/tests-makefile-gap

Conversation

@austek

@austek austek commented Aug 23, 2026

Copy link
Copy Markdown

Summary

tests.h/runtests.c declare and call sonicTestStreamCreation, sonicTestParameters, sonicTestFlush, and sonicTestSimpleProcessing — all defined in tests/sonic_api_test.c — but tests/Makefile's TEST_SRC was never updated to include it, so cd tests && make runtests fails to link with undefined references to all four.

Reproduced on a clean checkout of master:
```
$ cd tests && make runtests
...
undefined reference to sonicTestStreamCreation' undefined reference to sonicTestParameters'
undefined reference to sonicTestFlush' undefined reference to sonicTestSimpleProcessing'
```

(The root Makefile's own sonic_unit_test target already includes tests/sonic_api_test.c correctly — this is specifically about tests/Makefile's separate, standalone target.)

Test plan

  • cd tests && make runtests && ./runtests — now builds and passes (was a link failure before)

tests.h/runtests.c declare and call sonicTestStreamCreation,
sonicTestParameters, sonicTestFlush, and sonicTestSimpleProcessing --
all defined in tests/sonic_api_test.c -- but tests/Makefile's
TEST_SRC was never updated to include it, so `cd tests && make
runtests` fails to link with undefined references to all four.
Reproduced on a clean checkout of master.
austek added a commit to ZirekHQ/espeak-ng-sonic that referenced this pull request Aug 23, 2026
tests.h/runtests.c declare and call sonicTestStreamCreation,
sonicTestParameters, sonicTestFlush, and sonicTestSimpleProcessing --
all defined in tests/sonic_api_test.c -- but tests/Makefile's
TEST_SRC was never updated to include it, so `cd tests && make
runtests` fails to link with undefined references to all four.

Same gap ported (and independently confirmed) in
waywardgeek/sonic#72; also fixed directly in the still-open PR espeak-ng#2
("Sync 5 commits from waywardgeek/sonic"), which is what actually
introduces this mismatch on that branch -- this commit applies the
same fix to develop directly, since develop already has that content
merged in independently of whether/when espeak-ng#2 lands.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant