<?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>Zephyr ztest with CMock Integration Problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81277/zephyr-ztest-with-cmock-integration-problem</link><description>Hi all 
 We are using ztest in our project because it works nicely together with twister, Zephyr&amp;#39;s test runner tool. We need to have the ability to mock modules. For this we use CMock, which can be enabled by setting CONFIG_UNITY=y (which is part of nrf</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 May 2024 06:41:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81277/zephyr-ztest-with-cmock-integration-problem" /><item><title>RE: Zephyr ztest with CMock Integration Problem</title><link>https://devzone.nordicsemi.com/thread/486299?ContentTypeID=1</link><pubDate>Wed, 29 May 2024 06:41:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8623c439-9df8-436d-aea3-621fb887c22b</guid><dc:creator>thomas_fogh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I know it&amp;#39;s an old question, but did you find a solution?&lt;/p&gt;
&lt;p&gt;We&amp;#39;re trying to use the same setup: twister+ztest+cmock.&lt;/p&gt;
&lt;p&gt;When a mocked function is called with unexpected parameter I get: &amp;quot;longjmp causes uninitialized stack frame&amp;quot;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;BR, Thomas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr ztest with CMock Integration Problem</title><link>https://devzone.nordicsemi.com/thread/337121?ContentTypeID=1</link><pubDate>Tue, 02 Nov 2021 14:20:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8189d2e9-18f7-416e-94bf-44945d5f4bac</guid><dc:creator>n.marty</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Ok, no problem. Because we include Unity (and CMock) via nrf-sdk I thought I ask here too.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr ztest with CMock Integration Problem</title><link>https://devzone.nordicsemi.com/thread/337113?ContentTypeID=1</link><pubDate>Tue, 02 Nov 2021 13:55:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88150302-0abe-4152-8930-6b74d5a3178c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I believe ztest and Twister are more Zephyr related than Nordic, specifically. Have you checked this in a Zephyr forum? I suspect that you will get a quicker and a more accurate answer for your question there, than from me trying to read up on it (from scratch).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Let me know if you think I am wrong, but in my opinion it sounds like this is a bit outside what we provide.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>