Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs3-20sp
lab01
Commits
f065f128
Commit
f065f128
authored
6 years ago
by
Adam Blank
Browse files
Options
Download
Email Patches
Plain Diff
Update test-strsplit
parent
eb94c018
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testers/test-strsplit
+3
-3
testers/test-strsplit
with
3 additions
and
3 deletions
+3
-3
testers/test-strsplit
View file @
f065f128
...
...
@@ -13,7 +13,7 @@ function compile() {
function test() {
STU_CMD=$(eval echo $STUDENT_CMD)
eval "valgrind --error-exitcode=1
337
--log-file=.valgrind-output --leak-check=full --show-leak-kinds=all $STU_CMD &> .output";
eval "valgrind --error-exitcode=1
01
--log-file=.valgrind-output --leak-check=full --show-leak-kinds=all $STU_CMD &> .output";
valgrind_error=$?
if grep "All heap blocks were freed -- no leaks are possible" .valgrind-output > /dev/null; then
leak=0
...
...
@@ -22,9 +22,9 @@ function test() {
fi
diff <(eval $REF_CMD) .output;
diff_ret=$?
if [ $diff_ret -eq 0 ] && [ $leak -eq 0 ] && [ $valgrind_error -ne 1
337
]; then
if [ $diff_ret -eq 0 ] && [ $leak -eq 0 ] && [ $valgrind_error -ne 1
01
]; then
echo "$1: Passed";
elif [ $valgrind_error -eq 1
337
]; then
elif [ $valgrind_error -eq 1
01
]; then
echo "$1: Execution Error"
elif [ $diff_ret -ne 0 ]; then
echo "$1: Failed";
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment