aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-04-27 10:45:29 -0400
committerJack Lloyd <[email protected]>2017-04-27 10:45:29 -0400
commit220a586420d9c6103165b65cd0f8b8831a96e901 (patch)
tree0e7b923b314c89f1f030488220867f35391f7f1a /src
parent3a560e25b2ab197e54935eb047090446be6c10f5 (diff)
In text-based tests clear all data if algo changes
Curious test failure, HMAC(MD5) failing with "invalid IV length" (HMAC doesn't support an IV), it turned out to be the IV was left around from the previously run GMAC test. Just clear out all vars if a new [algo] header is seen in the file.
Diffstat (limited to 'src')
-rw-r--r--src/tests/tests.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/tests.cpp b/src/tests/tests.cpp
index fe97a2a7a..a678c64ae 100644
--- a/src/tests/tests.cpp
+++ b/src/tests/tests.cpp
@@ -898,6 +898,7 @@ std::vector<Test::Result> Text_Based_Test::run()
header = line.substr(1, line.size() - 2);
header_or_name = header;
test_cnt = 0;
+ vars.clear();
continue;
}