aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFilip Strömbäck <fstromback@gmail.com>2020-05-14 10:26:35 +0200
committerFilip Strömbäck <fstromback@gmail.com>2020-05-14 10:26:35 +0200
commit8434d9cf5bd082d5d7008ab66c282b6f67d9855d (patch)
treee2cdc842a408ee3226b4fa0d1d404d8be5f283b3 /src
parentb80c0aa351193793585cbfede56625cf72cf5060 (diff)
downloadpintos-rs-8434d9cf5bd082d5d7008ab66c282b6f67d9855d.tar.gz
Fixed test.
Signed-off-by: Filip Strömbäck <fstromback@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/tests/filst/sc-bad-exit.c2
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.
: