Compare commits

..

1 Commits

Author SHA1 Message Date
35f1902cbc test: add intentional functional test failure to verify CI detection
Some checks failed
CI Code / Check spelling (pull_request) Successful in 20s
CI Code / Check coding style (pull_request) Successful in 31s
CI Code / Linux (debian) (pull_request) Failing after 6m16s
CI Code / Linux (ubuntu) (pull_request) Failing after 6m21s
CI Code / Linux (arch) (pull_request) Failing after 6m25s
CI Code / Code Coverage (pull_request) Successful in 15m39s
2026-01-29 15:14:17 +03:00
2 changed files with 2 additions and 7 deletions

View File

@@ -47,7 +47,7 @@ ping_server(void **state)
prof_input("/ping");
prof_timeout(10);
assert_true(prof_output_regex("Pinged server"));
assert_true(prof_output_regex("INTENTIONAL FAILURE"));
prof_timeout_reset();
}

View File

@@ -14,12 +14,7 @@ replace_one_substr(void** state)
assert_string_equal("it was a string", result);
// INTENTIONAL VALGRIND ERROR: memory leak - not freeing result
// free(result);
// INTENTIONAL VALGRIND ERROR: use after free
char* leaked = malloc(64);
strcpy(leaked, "intentional leak for CI testing");
free(result);
}
void