mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 19:51:35 +01:00
create userland tests
Fix some more tabs. Parse the "Simulated exit code not 0!" string in gem5 and exit with the proper status
This commit is contained in:
13
userland/false.c
Normal file
13
userland/false.c
Normal file
@@ -0,0 +1,13 @@
|
||||
/* 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;
|
||||
}
|
||||
Reference in New Issue
Block a user