tests/stats: show how last item sent may be wrong

Extend the test to illustrate the bug described in the related issue,
which will be fixed with the next patch.

Related: OS#5215
Change-Id: I1d26867ac1b837bea6a9754a3203e53c147e7a5f
diff --git a/tests/stats/stats_test.c b/tests/stats/stats_test.c
index 15f50d2..6505e66 100644
--- a/tests/stats/stats_test.c
+++ b/tests/stats/stats_test.c
@@ -442,6 +442,16 @@
 	osmo_stats_report();
 	OSMO_ASSERT(send_count == 2);
 
+	fprintf(stderr, "report (group 1, item 1 no update, send last item (!= last max), OS#5215):\n");
+	send_count = 0;
+	osmo_stats_report();
+	OSMO_ASSERT(send_count == 0); /* BUG: should be 2! */
+
+	fprintf(stderr, "report (group 1, item 1 no update, nothing to send):\n");
+	send_count = 0;
+	osmo_stats_report();
+	OSMO_ASSERT(send_count == 0);
+
 	fprintf(stderr, "report (remove statg1, ctrg1):\n");
 	/* force single flush */
 	srep1->force_single_flush = 1;