summaryrefslogtreecommitdiff
path: root/test/execute_test.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2024-12-23 12:14:46 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2024-12-28 15:39:26 +0100
commit15e2bd35a8da320f074942e814885f3d6eaf0706 (patch)
treef74b1067dbde357532d8e38871e6b8cb76ea6da9 /test/execute_test.cc
parent78c5477b3989d67169de2d05665adfb801caab23 (diff)
Diffstat (limited to 'test/execute_test.cc')
-rw-r--r--test/execute_test.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/execute_test.cc b/test/execute_test.cc
index 4c686bf..027ef3b 100644
--- a/test/execute_test.cc
+++ b/test/execute_test.cc
@@ -30,11 +30,11 @@ public:
uASSERT(!cmd.empty());
auto value = execute(s, cmd, {"retval", "0"}, {}, false);
- uASSERT_EQUAL(0, value);
+ assert_equal(0, value, __FILE__, __LINE__);
value = execute(s, cmd, {"retval", "1"}, {}, false);
- uASSERT_EQUAL(1, value);
+ assert_equal(1, value, __FILE__, __LINE__);
value = execute(s, "no-such-binary", {}, {}, false);
- uASSERT_EQUAL(1, value);
+ assert_equal(1, value, __FILE__, __LINE__);
}
void env()
@@ -59,7 +59,7 @@ public:
env["LANG"] = "foo";
auto value = execute(s, cmd, {"envdump", tmp.get()}, env, false);
- uASSERT_EQUAL(0, value);
+ assert_equal(0, value, __FILE__, __LINE__);
std::vector<std::string> vars;
{