From d6d9677c93a6d5e710af704156f9a9dee3c66016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Str=C3=B6mb=C3=A4ck?= Date: Thu, 7 May 2020 16:16:06 +0200 Subject: Added a few more parameter-validating tests. --- src/tests/filst/sc-bad-write.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tests/filst/sc-bad-write.c') 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. : -- cgit v1.2.1