-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Almost completed coding for testcases in isprmgr.c
- Loading branch information
Showing
7 changed files
with
126 additions
and
14 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
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,9 +1,6 @@ | ||
++TESTEXIT: invoke exit | ||
5 | ||
++ISPRMGR VAR5: [STARTED] | ||
++ISPRMGR VAR5: invoke exec with unmatched argc | ||
++ISPRMGR VAR5: exec exittest.coff | ||
++ISPRMGR VAR5: invoke exec with unmatched argc when argv varies | ||
++ISPRMGR VAR5: exec exittest.coff | ||
++ISPRMGR VAR5: Retval of exec is 3 | ||
++ISPRMGR VAR5: [END] SUCCESS | ||
++ISPRMGR: ARG[1] is 7 | ||
++ISPRMGR VAR7: [STARTED] | ||
++ISPRMGR VAR7: exec exception.coff | ||
++ISPRMGR VAR7: [END] FAIL to invoke exec | ||
++ISPRMGR VAR7: Issue join to child with pid= 2 | ||
++ISPRMGR VAR7: [ENDED] FAIL |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/*prolog****************************************************************************** | ||
* | ||
* cname: loopawhile.c | ||
* desc: Make the code to hit an unhandled exception in VM | ||
* author: thinkhy | ||
* tccall: java nachos.machine.Machine -x exception.coff | ||
* | ||
* env: nachos 5.0j | ||
* compile:test/make | ||
* Change activity: | ||
* $BC,EPT 5/2/2014 - initial release | ||
*************************************************************************************/ | ||
#define LOOPTIME (1000L) | ||
|
||
void main() { | ||
int i = 0, j = 0; | ||
int s = 0; | ||
|
||
s = i / j; | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/*prolog****************************************************************************** | ||
* | ||
* cname: loopawhile.c | ||
* desc: loop lots of time. this program will be exec'ed by test cases in isprmgr.c | ||
* author: thinkhy | ||
* tccall: java nachos.machine.Machine -x loopawhile.coff | ||
* | ||
* env: nachos 5.0j | ||
* compile:test/make | ||
* Change activity: | ||
* $BC,EPT 5/2/2014 - initial release | ||
*************************************************************************************/ | ||
#define LOOPTIME (1000L) | ||
|
||
void main() { | ||
int i = 0, j = 0; | ||
int s = 0; | ||
for (i = 0; i < LOOPTIME; i++) { | ||
for (j = 0; j < LOOPTIME; j++) { | ||
s = s + 100; | ||
} | ||
} | ||
} |
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
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
#3 At here, I meet a design problem ...