aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/qtest/fuzz/fork_fuzz.ld16
-rw-r--r--tests/qtest/fuzz/qos_fuzz.c5
-rw-r--r--tests/test-rcu-list.c2
3 files changed, 15 insertions, 8 deletions
diff --git a/tests/qtest/fuzz/fork_fuzz.ld b/tests/qtest/fuzz/fork_fuzz.ld
index b23a59f..e086bba 100644
--- a/tests/qtest/fuzz/fork_fuzz.ld
+++ b/tests/qtest/fuzz/fork_fuzz.ld
@@ -1,7 +1,8 @@
-/* We adjust linker script modification to place all of the stuff that needs to
- * persist across fuzzing runs into a contiguous seciton of memory. Then, it is
+/*
+ * We adjust linker script modification to place all of the stuff that needs to
+ * persist across fuzzing runs into a contiguous section of memory. Then, it is
* easy to re-map the counter-related memory as shared.
-*/
+ */
SECTIONS
{
@@ -17,7 +18,8 @@ SECTIONS
}
.data.fuzz_ordered :
{
- /* Coverage counters. They're not necessary for fuzzing, but are useful
+ /*
+ * Coverage counters. They're not necessary for fuzzing, but are useful
* for analyzing the fuzzing performance
*/
__start___llvm_prf_cnts = .;
@@ -32,6 +34,8 @@ SECTIONS
__FUZZ_COUNTERS_END = .;
}
}
-/* Dont overwrite the SECTIONS in the default linker script. Instead insert the
- * above into the default script */
+/*
+ * Don't overwrite the SECTIONS in the default linker script. Instead insert the
+ * above into the default script
+ */
INSERT AFTER .data;
diff --git a/tests/qtest/fuzz/qos_fuzz.c b/tests/qtest/fuzz/qos_fuzz.c
index bbb1747..1a99277 100644
--- a/tests/qtest/fuzz/qos_fuzz.c
+++ b/tests/qtest/fuzz/qos_fuzz.c
@@ -120,7 +120,10 @@ static void walk_path(QOSGraphNode *orig_path, int len)
QOSGraphNode *path;
QOSGraphEdge *edge;
- /* etype set to QEDGE_CONSUMED_BY so that machine can add to the command line */
+ /*
+ * etype set to QEDGE_CONSUMED_BY so that machine can add to the command
+ * line
+ */
QOSEdgeType etype = QEDGE_CONSUMED_BY;
/* twice QOS_PATH_MAX_ELEMENT_SIZE since each edge can have its arg */
diff --git a/tests/test-rcu-list.c b/tests/test-rcu-list.c
index 1442c0c..92be51e 100644
--- a/tests/test-rcu-list.c
+++ b/tests/test-rcu-list.c
@@ -235,7 +235,7 @@ static void *rcu_q_updater(void *arg)
j++;
if (target_el == j) {
struct list_element *new_el = g_new(struct list_element, 1);
- n_nodes += n_nodes_local;
+ n_nodes_local++;
TEST_LIST_INSERT_AFTER_RCU(el, new_el, entry);
break;
}