aboutsummaryrefslogtreecommitdiff
path: root/unittest/test_strdup.cpp
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-01-28 12:15:43 +0100
committerRobin Krahl <robin.krahl@ireas.org>2019-01-28 12:15:43 +0100
commite13dcef265dea3b222b85e09274333ba984ac1ca (patch)
tree0316b8fb03d4129aadce2f43d910829f492227a0 /unittest/test_strdup.cpp
parent4dbe7113cf374454f681736308d87e27403c147b (diff)
downloadlibnitrokey-e13dcef265dea3b222b85e09274333ba984ac1ca.tar.gz
libnitrokey-e13dcef265dea3b222b85e09274333ba984ac1ca.tar.bz2
Replace NK_status with NK_get_status_as_string in unit tests
Diffstat (limited to 'unittest/test_strdup.cpp')
-rw-r--r--unittest/test_strdup.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittest/test_strdup.cpp b/unittest/test_strdup.cpp
index 4f77b7f..c7f4ea8 100644
--- a/unittest/test_strdup.cpp
+++ b/unittest/test_strdup.cpp
@@ -34,7 +34,7 @@ static const int SHORT_STRING_LENGTH = 10;
TEST_CASE("Test strdup memory free error", "[BASIC]")
{
NK_set_debug(false);
- char *c = NK_status(); /* error --> string literal */
+ char *c = NK_get_status_as_string(); /* error --> string literal */
REQUIRE(c != nullptr);
REQUIRE(strnlen(c, SHORT_STRING_LENGTH) == 0);
puts(c);
@@ -48,7 +48,7 @@ TEST_CASE("Test strdup memory leak", "[BASIC]")
if (!connected) return;
REQUIRE(connected);
- char *c = NK_status(); /* no error --> dynamically allocated */
+ char *c = NK_get_status_as_string(); /* no error --> dynamically allocated */
REQUIRE(c != nullptr);
REQUIRE(strnlen(c, SHORT_STRING_LENGTH) > 0);
puts(c);