aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-05-14 12:01:37 -0400
committerRob Austein <sra@hactrn.net>2016-05-14 12:01:37 -0400
commitb1225c11f89dad1a749b6572e50e5e5fce5234e8 (patch)
tree9a48533db312fcb73d1c922851a6b51c3299b8e7 /tests
parentc861f7d2f3c5f69c02a633c51113518b70eedc27 (diff)
Trailing whitespace cleanup.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-ecdsa.py2
-rw-r--r--tests/test-rpc_get_random.c4
-rw-r--r--tests/test-rpc_get_version.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-ecdsa.py b/tests/test-ecdsa.py
index efd96e3..f50cf59 100644
--- a/tests/test-ecdsa.py
+++ b/tests/test-ecdsa.py
@@ -129,7 +129,7 @@ for curve in curves:
print "static const uint8_t %s[] = { /* %d bytes */" % (name, len(value))
print wrapper.fill(", ".join("0x%02x" % ord(v) for v in value))
print "};"
-
+
print
print "typedef struct {"
print " hal_curve_name_t curve;"
diff --git a/tests/test-rpc_get_random.c b/tests/test-rpc_get_random.c
index 9e9765d..e495514 100644
--- a/tests/test-rpc_get_random.c
+++ b/tests/test-rpc_get_random.c
@@ -55,11 +55,11 @@ int main(int argc, char *argv[])
len = atoi(argv[1]);
if (len <= 0) /* no arg, or bad arg */
len = DEFAULT_LEN;
-
+
uint8_t rnd[len];
#define check(op) { hal_error_t err; if ((err = (op)) != HAL_OK) { printf("%s: %s\n", #op, hal_error_string(err)); return 1; } }
-
+
check(hal_rpc_client_init());
check(hal_rpc_get_random(rnd, sizeof(rnd)));
diff --git a/tests/test-rpc_get_version.c b/tests/test-rpc_get_version.c
index ae1b745..d9041b8 100644
--- a/tests/test-rpc_get_version.c
+++ b/tests/test-rpc_get_version.c
@@ -42,7 +42,7 @@ int main(int argc, char *argv[])
uint32_t version;
#define check(op) { hal_error_t err; if ((err = (op)) != HAL_OK) { printf("%s: %s\n", #op, hal_error_string(err)); return 1; } }
-
+
check(hal_rpc_client_init());
check(hal_rpc_get_version(&version));
printf("%08x\n", version);