[PATCH 1/1] test: fix build failure for syslog_test

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH 1/1] test: fix build failure for syslog_test

Heinrich Schuchardt
Avoid failures like:

test/log/syslog_test_ndebug.c:18:10:
fatal error: syslog_test.h: No such file or directory
   18 | #include <syslog_test.h>
      |          ^~~~~~~~~~~~~~~

syslog_test.h is a local include. Use "" and not <>.

Signed-off-by: Heinrich Schuchardt <[hidden email]>
---
 test/log/syslog_test.c        | 2 +-
 test/log/syslog_test_ndebug.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/log/syslog_test.c b/test/log/syslog_test.c
index febaca68e8..a058d8f569 100644
--- a/test/log/syslog_test.c
+++ b/test/log/syslog_test.c
@@ -18,7 +18,7 @@
 #include <test/suites.h>
 #include <test/ut.h>
 #include <asm/eth.h>
-#include <syslog_test.h>
+#include "syslog_test.h"

 DECLARE_GLOBAL_DATA_PTR;

diff --git a/test/log/syslog_test_ndebug.c b/test/log/syslog_test_ndebug.c
index c7f5a60861..84844a3944 100644
--- a/test/log/syslog_test_ndebug.c
+++ b/test/log/syslog_test_ndebug.c
@@ -15,7 +15,7 @@
 #include <test/suites.h>
 #include <test/ut.h>
 #include <asm/eth.h>
-#include <syslog_test.h>
+#include "syslog_test.h"

 DECLARE_GLOBAL_DATA_PTR;

--
2.28.0

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH 1/1] test: fix build failure for syslog_test

Simon Glass-3
On Sat, 17 Oct 2020 at 05:45, Heinrich Schuchardt <[hidden email]> wrote:

>
> Avoid failures like:
>
> test/log/syslog_test_ndebug.c:18:10:
> fatal error: syslog_test.h: No such file or directory
>    18 | #include <syslog_test.h>
>       |          ^~~~~~~~~~~~~~~
>
> syslog_test.h is a local include. Use "" and not <>.
>
> Signed-off-by: Heinrich Schuchardt <[hidden email]>
> ---
>  test/log/syslog_test.c        | 2 +-
>  test/log/syslog_test_ndebug.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>

Reviewed-by: Simon Glass <[hidden email]>