<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Unit Tests: CMock does not generate mocks for __syscall in Zephyr drivers</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115756/unit-tests-cmock-does-not-generate-mocks-for-__syscall-in-zephyr-drivers</link><description>Hi, 
 I am developing unit tests and would like to generate mocks for the following functions in the Zephyr uart driver in the file &amp;quot;uart.h&amp;quot;. 
 
 uart_irq_update 
 uart_err_check 
 uart_poll_out 
 
 I have included the uart.h in CMake as shown below.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Oct 2024 13:03:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115756/unit-tests-cmock-does-not-generate-mocks-for-__syscall-in-zephyr-drivers" /><item><title>RE: Unit Tests: CMock does not generate mocks for __syscall in Zephyr drivers</title><link>https://devzone.nordicsemi.com/thread/507758?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2024 13:03:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10421bcb-0f96-4bda-8aa6-3f4455be9ad4</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have not found any examples of mocking syscalls (nor any former requests about it). If this is something you want supported in Zephy, then I recomend asking the &lt;a href="https://www.zephyrproject.org/community/"&gt;Zephyr community&lt;/a&gt;&amp;nbsp;(&lt;a href="https://discord.com/invite/Ck7jw53nU2"&gt;Discord&lt;/a&gt;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>