-
|
I followed the steps for setup on readtheocs. Then I copy pasted the example from Getting Started section #include <string.h>
#include <criterion/criterion.h>
Test(sample, test)
{
cr_expect(strlen("Test") == 4, "Expected \"Test\" to have a length of 4.");
cr_expect(strlen("Hello") == 4, "This will always fail, why did I add this?");
cr_assert(strlen("") == 0);
}and compiled it using gcc test.c -I .\Criterion\include -L .\Criterion\build\src -lcriterionThe resulting executable did not output anything. Is there a step or flag I am missing, or am I doing everything wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
MrAnno
Dec 23, 2022
Replies: 1 comment 2 replies
-
|
Do you have the directory containing |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment




RPATHdoes not really exist on Windows, so you either need to set a PATH too as a runtime path or copycriterion.dllnext to the test binaries.