summaryrefslogtreecommitdiff
path: root/c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-09-28 22:29:56 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-09-28 22:29:56 +0200
commit26bdae34860e4471df01067a55fd951d36b3f6fe (patch)
treeb27a8c7d425cdd8499dd03a5365aa68eb7168599 /c
parent1f5c1970b4c5119abbb5597ee94b4594764ab13c (diff)
downloadsubunit-26bdae34860e4471df01067a55fd951d36b3f6fe.tar.gz
Split up progress tests.
Diffstat (limited to 'c')
-rw-r--r--c/tests/test_child.c29
1 files changed, 24 insertions, 5 deletions
diff --git a/c/tests/test_child.c b/c/tests/test_child.c
index d0e254a..0744599 100644
--- a/c/tests/test_child.c
+++ b/c/tests/test_child.c
@@ -166,20 +166,39 @@ END_TEST
static void
-call_test_progress(void)
+call_test_progress_pop(void)
{
subunit_progress(SUBUNIT_PROGRESS_POP, 0);
+}
+
+static void
+call_test_progress_set(void)
+{
subunit_progress(SUBUNIT_PROGRESS_SET, 5);
+}
+
+static void
+call_test_progress_push(void)
+{
subunit_progress(SUBUNIT_PROGRESS_PUSH, 0);
}
+static void
+call_test_progress_cur(void)
+{
+ subunit_progress(SUBUNIT_PROGRESS_CUR, -6);
+}
START_TEST (test_progress)
{
- test_stdout_function("progress: pop\n"
- "progress: 5\n"
- "progress: push\n",
- call_test_progress);
+ test_stdout_function("progress: pop\n",
+ call_test_progress_pop);
+ test_stdout_function("progress: push\n",
+ call_test_progress_push);
+ test_stdout_function("progress: 5\n",
+ call_test_progress_set);
+ test_stdout_function("progress: -6\n",
+ call_test_progress_cur);
}
END_TEST