projects
/
nestedvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix more fixmes/features
[nestedvm.git]
/
src
/
tests
/
Test.c
diff --git
a/src/tests/Test.c
b/src/tests/Test.c
index
88e1eb6
..
d133ede
100644
(file)
--- a/
src/tests/Test.c
+++ b/
src/tests/Test.c
@@
-98,6
+98,9
@@
int main(int argc, char **argv) {
} else if(argc > 1 && strcmp(argv[1],"nullderef")==0) {
volatile int *mem = 0;
*mem = 1;
} else if(argc > 1 && strcmp(argv[1],"nullderef")==0) {
volatile int *mem = 0;
*mem = 1;
+ } else if(argc > 2 && strcmp(argv[1],"crashme") == 0) {
+ volatile int *mem = (int*) atoi(argv[2]);
+ *mem = 1;
} else {
printf("%d\n", 0xffffff);
printf("%u\n", 0xffffffU);
} else {
printf("%d\n", 0xffffff);
printf("%u\n", 0xffffffU);