Skip to contentSkip to conversation

tests: Correct comment for qdict_array_split test

PATCH In review Max Reitz 3 participants 3 messages Jan 12, 2014 – Jan 13, 2014

lore
Share & tools
lore

Max Reitz

author
#0 lore raw

PATCH 1/1 tests: Correct comment for qdict_array_split test

The comment explaining the expected behavior was actually mistaken (the test code, however, was not). Fix this.

---
 tests/check-qdict.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
tests/check-qdict.c +3 -3
index d4ec631..7a7461b 100644
@@ -323,11 +323,11 @@ static void qdict_array_split_test(void)
      *
      * [
      *     {
-     *         "a": 42
+     *         "a": 42,
+     *         "b": 23
      *     },
      *     {
-     *         "x": 0,
-     *         "y": 1
+     *         "x": 0
      *     }
      * ]
      *
Signature · 1 line
1.8.5.2
#1 lore raw

Am 12.01.2014 um 17:01 hat Max Reitz geschrieben:

Quoted 4 lines

The comment explaining the expected behavior was actually mistaken (the test code, however, was not). Fix this.

Thanks. As the original patch wasn't merged into qemu.git master yet, I have updated it with this fix.

Kevin

#2 lore raw
In reply to Max Reitz
Quoted 17 lines · Max Reitz

The comment explaining the expected behavior was actually mistaken (the test code, however, was not). Fix this.

---
 tests/check-qdict.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
tests/check-qdict.c +0 -1
index d4ec631..7a7461b 100644
@@ -323,11 +323,11 @@ static void qdict_array_split_test(void)
      *
      * [
      *     {
-     *         "a": 42

tests/check-qdict.c static void qdict_array_split_test(void) · line 333

Quoted 10 lines
tests/check-qdict.c +3 -2
+     *         "a": 42,
+     *         "b": 23
      *     },
      *     {
-     *         "x": 0,
-     *         "y": 1
+     *         "x": 0
      *     }
      * ]
      *

Looks like this is on top of "[PATCH v7 21/24] tests: Add test for qdict_array_split()", which hasn't been committed, yet. Squash it in?