diff options
| author | Filip Strömbäck <filip.stromback@liu.se> | 2020-05-07 16:16:06 +0200 |
|---|---|---|
| committer | Filip Strömbäck <filip.stromback@liu.se> | 2020-05-07 16:16:06 +0200 |
| commit | d6d9677c93a6d5e710af704156f9a9dee3c66016 (patch) | |
| tree | 5b44ecc4223ccb84c8901a32b775470a26a82685 /src/tests/filst/sc-bad-write.c | |
| parent | fa7324110fccec3c9c9ede4cf85b06e7bd0efe23 (diff) | |
| download | pintos-rs-d6d9677c93a6d5e710af704156f9a9dee3c66016.tar.gz | |
Added a few more parameter-validating tests.
Diffstat (limited to 'src/tests/filst/sc-bad-write.c')
| -rw-r--r-- | src/tests/filst/sc-bad-write.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/filst/sc-bad-write.c b/src/tests/filst/sc-bad-write.c index 18e8f4d..c6f23f7 100644 --- a/src/tests/filst/sc-bad-write.c +++ b/src/tests/filst/sc-bad-write.c @@ -31,7 +31,7 @@ const char *FAIL = "FAIL\n"; void test_main(void) { - // Get the addres of the first unmapped page in the system. + // Get the address of the first unmapped page in the process. unsigned page = (unsigned)pg_round_up(&_end_bss); // Reserve space for 4 parameters. @@ -44,7 +44,7 @@ void test_main(void) "movl %1, (%%esp);" // Try to call SYS_WRITE "movl %2, 4(%%esp);" // Write to STDOUT "movl %3, 8(%%esp);" // Load buffer. - "movl $6, 12(%%esp);" // Write length of string + "movl $6, 12(%%esp);" // Write length of string "int $0x30;" "movl %%edi, %%esp;" // Restore esp. : |
