0.3.0: converge relibc to upstream 0.6.0 + Red Bear patches

This commit is contained in:
2026-07-06 19:13:08 +03:00
parent 1a0edd8eeb
commit 4ef7e57571
1466 changed files with 75236 additions and 13644 deletions
+11 -1
View File
@@ -3,6 +3,16 @@
#include "test_helpers.h"
int main(void) {
int status = system("echo test of system");
// testing shell detection
// this means, because we don't detect if a shell actually exists but just assume it does, this test case breaks in
// environments without `sh`. I think that is a reasonable tradeoff.
// (And if there isn't a shell, system() won't work anyways)
int status = system(NULL);
printf("shell found: %i\n", status);
fflush(stdout);
ERROR_IF(system, status, == 0);
// base case
status = system("echo test of system");
ERROR_IF(system, status, == -1);
}