]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#4348] Updated checkContext
authorFrancis Dupont <fdupont@isc.org>
Tue, 17 Feb 2026 10:14:34 +0000 (11:14 +0100)
committerFrancis Dupont <fdupont@isc.org>
Tue, 5 May 2026 21:15:51 +0000 (23:15 +0200)
src/lib/d2srv/testutils/nc_test_utils.cc
src/lib/d2srv/testutils/nc_test_utils.h

index b7811bbaa100df3b7ab33089e5127dc3dbea2f9c..62864a1b2653ffec47f780c5ab5f67b290c864c7 100644 (file)
@@ -978,8 +978,8 @@ checkSimpleRemoveRevPtrsRequest(NameChangeTransaction& tran) {
 
 // Verifies the current state and next event in a transaction
 void
-checkContext(NameChangeTransactionPtr trans, const unsigned int exp_state,
-             const unsigned int exp_evt, const std::string& file, int line) {
+checkContext(NameChangeTransactionPtr trans, const int exp_state,
+             const int exp_evt, const std::string& file, int line) {
     ASSERT_TRUE(trans);
     ASSERT_TRUE(exp_state == trans->getCurrState() && exp_evt == trans->getNextEvent())
             << "expected state: " << trans->getStateLabel(exp_state)
index 47c564e8a687eaec7145c55895d327cf467efc6e..b695a821fe2e361ebca36fb8c77cf63d6aa62cc9 100644 (file)
@@ -491,8 +491,8 @@ extern std::string toHexText(const uint8_t* data, size_t len);
 /// @param file source file name
 /// @param line source line number
 extern void checkContext(NameChangeTransactionPtr trans,
-                         const unsigned int exp_state,
-                         const unsigned int exp_evt,
+                         const int exp_state,
+                         const int exp_evt,
                          const std::string& file, int line);
 
 /// @brief Macro for calling checkContext() that supplies invocation location