Skip to content

Commit 873ddeb

Browse files
rddunlapshuahkh
authored andcommitted
KUnit: Docs: usage: wording fixes
Fix minor grammar and punctutation glitches. Hyphenate "architecture-specific" instances. Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: David Gow <davidgow@google.com> Cc: linux-kselftest@vger.kernel.org Cc: kunit-dev@googlegroups.com Cc: Shuah Khan <shuah@kernel.org> Cc: Shuah Khan <skhan@linuxfoundation.org> Cc: Brendan Higgins <brendanhiggins@google.com> Reviewed-by: David Gow <davidgow@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent 1f4dde5 commit 873ddeb

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎Documentation/dev-tools/kunit/usage.rst‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ behavior of a function called ``add``; the first parameter is always of type
9292
the second parameter, in this case, is what the value is expected to be; the
9393
last value is what the value actually is. If ``add`` passes all of these
9494
expectations, the test case, ``add_test_basic`` will pass; if any one of these
95-
expectations fail, the test case will fail.
95+
expectations fails, the test case will fail.
9696

9797
It is important to understand that a test case *fails* when any expectation is
9898
violated; however, the test will continue running, potentially trying other
@@ -202,7 +202,7 @@ Example:
202202
kunit_test_suite(example_test_suite);
203203
204204
In the above example the test suite, ``example_test_suite``, would run the test
205-
cases ``example_test_foo``, ``example_test_bar``, and ``example_test_baz``,
205+
cases ``example_test_foo``, ``example_test_bar``, and ``example_test_baz``;
206206
each would have ``example_test_init`` called immediately before it and would
207207
have ``example_test_exit`` called immediately after it.
208208
``kunit_test_suite(example_test_suite)`` registers the test suite with the
@@ -229,7 +229,7 @@ through some sort of indirection where a function is exposed as part of an API
229229
such that the definition of that function can be changed without affecting the
230230
rest of the code base. In the kernel this primarily comes from two constructs,
231231
classes, structs that contain function pointers that are provided by the
232-
implementer, and architecture specific functions which have definitions selected
232+
implementer, and architecture-specific functions which have definitions selected
233233
at compile time.
234234

235235
Classes
@@ -459,7 +459,7 @@ KUnit on non-UML architectures
459459
By default KUnit uses UML as a way to provide dependencies for code under test.
460460
Under most circumstances KUnit's usage of UML should be treated as an
461461
implementation detail of how KUnit works under the hood. Nevertheless, there
462-
are instances where being able to run architecture specific code or test
462+
are instances where being able to run architecture-specific code or test
463463
against real hardware is desirable. For these reasons KUnit supports running on
464464
other architectures.
465465

@@ -599,7 +599,7 @@ writing normal KUnit tests. One special caveat is that you have to reset
599599
hardware state in between test cases; if this is not possible, you may only be
600600
able to run one test case per invocation.
601601

602-
.. TODO(brendanhiggins@google.com): Add an actual example of an architecture
602+
.. TODO(brendanhiggins@google.com): Add an actual example of an architecture-
603603
dependent KUnit test.
604604
605605
KUnit debugfs representation

0 commit comments

Comments
 (0)