Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed test of
test_cmd_memory_watch
: no need for scanf
, which mak…
…es testing more hazardous
- Loading branch information
hugsy
committed
Aug 22, 2021
1 parent
2fb1b10
commit 90d2c8c
Showing
3 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,4 +66,4 @@ jobs: | |
- name: Run Tests | ||
run: | | ||
bash -c 'make test' | ||
make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
#include<stdio.h> | ||
#include<stdlib.h> | ||
|
||
int myglobal = 1; | ||
|
||
int main() | ||
int main(int argc, char** argv) | ||
{ | ||
// breakpoints hardcoded for convenience | ||
scanf("%d", &myglobal); | ||
myglobal = strtoll(argv[1], NULL, 16); | ||
asm("int3"); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters