Verified Commit dc787b37 authored by Karel Koci's avatar Karel Koci 🤘
Browse files

tests/c: do not for when using valgrind

We are grabing scripts output including stderr and because of that we
can't trace childs. Instead we make it so most of our code runs without
parent 58ab9d4b
Pipeline #65051 failed with stages
in 7 minutes and 22 seconds
......@@ -20,12 +20,16 @@
#include "ctest.h"
#include <logging.h>
int main(void) {
int main(int argc, char *argv[]) {
Suite *suite = gen_test_suite();
SRunner *runner = srunner_create(suite);
char *valgrind = getenv("VALGRIND");
if (valgrind && *valgrind != '\0')
srunner_set_fork_status(runner, CK_NOFORK);
srunner_run_all(runner, CK_NORMAL);
int failed = srunner_ntests_failed(runner);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment