Skip to content

Tests hang when compiled for x86 but run fine in simulator for target uC #759

Discussion options

You must be logged in to vote

I figured it out, the example i'm using goes into a forever DeadLoop per the cross compilation guidance here once the tests are complete. The text fixture looks like it actually monitors the ouput for the "OK" and then effectively kills the process. Without that logic, the native build just got stuck in the DeadLoop. Changing this:

#ifndef UNITY_CONFIG_H
#define UNITY_CONFIG_H
#include "UnityHelper.h"
#define UNITY_OUTPUT_COMPLETE() UnityHelperDeadLoop()
#endif

to this

#ifndef UNITY_CONFIG_H
#define UNITY_CONFIG_H

#include "UnityHelper.h"
#ifdef __XC__
#define UNITY_OUTPUT_COMPLETE() UnityHelperDeadLoop()
#endif
#endif

Resolved my native build issues. Thanks @Letme for the help.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@MikeExMachina
Comment options

@Letme
Comment options

@MikeExMachina
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by MikeExMachina
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants