-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #135 from carloslack/regression-tests
Adding more tests
- Loading branch information
Showing
5 changed files
with
115 additions
and
69 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
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,22 @@ | ||
#!/bin/sh | ||
|
||
insmod kovid.ko | ||
|
||
# The kovid trick | ||
kill -CONT 31337 | ||
|
||
# Run the a.out executable in the background | ||
./a.out & | ||
AOUT_PID=$! # Capture the PID of a.out | ||
|
||
# Wait briefly to ensure a.out has started | ||
sleep 1 | ||
|
||
# Output the PID (for debugging or verification) | ||
echo "PID of a.out is $AOUT_PID" | ||
|
||
echo "-b $AOUT_PID" > /proc/myprocname | ||
|
||
cat /proc/myprocname | ||
|
||
rmmod kovid.ko |
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,5 @@ | ||
# RUN: FileCheck-18 --input-file=%kovid_testdir/extract-base-address.log %s | ||
|
||
# CHECK: sh: can't kill pid 31337: No such process | ||
## We expect an address like `55e648a65000` | ||
# CHECK: 55{{.*}} |
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