diff options
| author | Filip Strömbäck <fstromback@gmail.com> | 2020-05-14 10:26:35 +0200 |
|---|---|---|
| committer | Filip Strömbäck <fstromback@gmail.com> | 2020-05-14 10:26:35 +0200 |
| commit | 8434d9cf5bd082d5d7008ab66c282b6f67d9855d (patch) | |
| tree | e2cdc842a408ee3226b4fa0d1d404d8be5f283b3 | |
| parent | b80c0aa351193793585cbfede56625cf72cf5060 (diff) | |
| download | pintos-rs-8434d9cf5bd082d5d7008ab66c282b6f67d9855d.tar.gz | |
Fixed test.
Signed-off-by: Filip Strömbäck <fstromback@gmail.com>
| -rw-r--r-- | src/tests/filst/sc-bad-exit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/filst/sc-bad-exit.c b/src/tests/filst/sc-bad-exit.c index d469fcb..a0f02ea 100644 --- a/src/tests/filst/sc-bad-exit.c +++ b/src/tests/filst/sc-bad-exit.c @@ -35,7 +35,7 @@ void test_main(void) "movl %%esp, %%edi;" // Save the stack pointer in case we survive. "movl %0, %%esp;" // Set stack pointer. "movl %1, (%%esp);" // Try to call SYS_EXIT - "movb $1, 4(%%esp);" // Set the first byte of the syscall number to one. + "movb $0, 4(%%esp);" // Set the parameter to zero. "int $0x30;" // Trigger syscall. "movl %%edi, %%esp;" // Restore the old stack if we survivied. : |
