Skip to content

Commit

Permalink
programs/ssl: add EOF testcase for ssl_context_info.c
Browse files Browse the repository at this point in the history
This patch updates the test cases to also check for EOF correctly.

Signed-off-by: Nayna Jain <[email protected]>
  • Loading branch information
naynajain committed Aug 14, 2020
1 parent 89cf0f3 commit b0aadc4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/context-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,12 @@ run_test "Wrong base64 format" \
"def_bad_b64.txt" \
-m "ERROR" \
-u "The length of the base64 code found should be a multiple of 4" \
-n "bytes left to analyze from context"
-n "bytes left to analyze from context" \

run_test "EOF base64 format" \
"def_bad_b64_eof.txt" \
-m "Finished. No valid base64 code found" \
-n "ERROR" \

run_test "Too much data at the beginning of base64 code" \
"def_b64_too_big_1.txt" \
Expand Down
1 change: 1 addition & 0 deletions tests/data_files/base64/def_bad_b64_eof.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/w==

0 comments on commit b0aadc4

Please sign in to comment.