File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99#ifndef _KUNIT_ASSERT_H
1010#define _KUNIT_ASSERT_H
1111
12- #include <kunit/string-stream.h>
1312#include <linux/err.h>
13+ #include <linux/kernel.h>
1414
1515struct kunit ;
16+ struct string_stream ;
1617
1718/**
1819 * enum kunit_assert_type - Type of expectation/assertion.
Original file line number Diff line number Diff line change 77 */
88#include <kunit/assert.h>
99
10+ #include "string-stream.h"
11+
1012void kunit_base_assert_format (const struct kunit_assert * assert ,
1113 struct string_stream * stream )
1214{
Original file line number Diff line number Diff line change 66 * Author: Brendan Higgins <brendanhiggins@google.com>
77 */
88
9- #include <kunit/string-stream.h>
109#include <kunit/test.h>
1110#include <linux/slab.h>
1211
12+ #include "string-stream.h"
13+
1314static void string_stream_test_empty_on_creation (struct kunit * test )
1415{
1516 struct string_stream * stream = alloc_string_stream (test , GFP_KERNEL );
Original file line number Diff line number Diff line change 66 * Author: Brendan Higgins <brendanhiggins@google.com>
77 */
88
9- #include <kunit/string-stream.h>
109#include <kunit/test.h>
1110#include <linux/list.h>
1211#include <linux/slab.h>
1312
13+ #include "string-stream.h"
14+
1415struct string_stream_fragment_alloc_context {
1516 struct kunit * test ;
1617 int len ;
File renamed without changes.
Original file line number Diff line number Diff line change 1111#include <linux/kernel.h>
1212#include <linux/sched/debug.h>
1313
14+ #include "string-stream.h"
15+
1416static void kunit_set_failure (struct kunit * test )
1517{
1618 WRITE_ONCE (test -> success , false);
You can’t perform that action at this time.
0 commit comments