Files
linux-kernel-module-cheat/userland/false.c
Ciro Santilli 六四事件 法轮功 f2e73bac83 create userland tests
Fix some more tabs.

Parse the "Simulated exit code not 0!" string in gem5 and exit with the proper status
2019-01-22 00:00:00 +00:00

14 lines
243 B
C

/* Test that emulators forward the exit status properly. */
#include <stdlib.h>
int main(int argc, char **argv) {
int ret;
if (argc == 1) {
ret = 1;
} else {
ret = strtoull(argv[1], NULL, 0);
}
return ret;
}