summaryrefslogtreecommitdiff
path: root/test/tasks_test.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2022-05-30 19:30:29 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2022-06-09 22:24:44 +0200
commitd9cb571fe126e7e94a52361d733161aa25f23597 (patch)
treed8d43f18a98ea648bd25cd46921d64d0a96c2802 /test/tasks_test.cc
parentdafd592cf44c184f9d24e2216bbed5c23e4b23c2 (diff)
Add UnitTestLib target type, for unit-test only libraries. And fix unit-test linkage.
Diffstat (limited to 'test/tasks_test.cc')
-rw-r--r--test/tasks_test.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/tasks_test.cc b/test/tasks_test.cc
index 82296b7..a807d32 100644
--- a/test/tasks_test.cc
+++ b/test/tasks_test.cc
@@ -116,20 +116,20 @@ public:
uASSERT_EQUAL(6u, tasks.size());
// Note: count() is used here because the order of
// std::set<std::shared_ptr<T>> is not deterministic.
- uASSERT_EQUAL(1u, count(tasks, "foo/test/target1"s));
- uASSERT_EQUAL(1u, count(tasks, "foo/test/target2"s));
- uASSERT_EQUAL(1u, count(tasks, "foo/test/target3"s));
- uASSERT_EQUAL(1u, count(tasks, "foo/test/target4"s));
- uASSERT_EQUAL(1u, count(tasks, "foo/test/target1-foo_cc.o"s));
- uASSERT_EQUAL(1u, count(tasks, "foo/test/target1-bar_c.o"s));
+ uASSERT_EQUAL(1u, count(tasks, "target1"s));
+ uASSERT_EQUAL(1u, count(tasks, "target2"s));
+ uASSERT_EQUAL(1u, count(tasks, "target3"s));
+ uASSERT_EQUAL(1u, count(tasks, "target4"s));
+ uASSERT_EQUAL(1u, count(tasks, "test/target1-foo_cc.o"s));
+ uASSERT_EQUAL(1u, count(tasks, "test/target1-bar_c.o"s));
}
{
auto tasks = getTasks(settings, {"target1", "target3"});
uASSERT_EQUAL(4u, tasks.size());
- uASSERT_EQUAL(1u, count(tasks, "foo/test/target1"s));
- uASSERT_EQUAL(1u, count(tasks, "foo/test/target3"s));
- uASSERT_EQUAL(1u, count(tasks, "foo/test/target1-foo_cc.o"s));
- uASSERT_EQUAL(1u, count(tasks, "foo/test/target1-bar_c.o"s));
+ uASSERT_EQUAL(1u, count(tasks, "target1"s));
+ uASSERT_EQUAL(1u, count(tasks, "target3"s));
+ uASSERT_EQUAL(1u, count(tasks, "test/target1-foo_cc.o"s));
+ uASSERT_EQUAL(1u, count(tasks, "test/target1-bar_c.o"s));
}
{
auto tasks = getTasks(settings, {"no-such-target"});