File 4462-test-kernel-check-that-user-can-add-handler-with-cus.patch of Package erlang
From d68a2212902e4c1bc864bc984314f1e10cfd63eb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Niemier?= <lukasz@niemier.pl>
Date: Fri, 31 Jan 2020 17:38:18 +0100
Subject: [PATCH 2/2] test(kernel): check that user can add handler with custom
 device
---
 lib/kernel/doc/src/logger_std_h.xml    | 2 +-
 lib/kernel/test/logger_std_h_SUITE.erl | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/lib/kernel/doc/src/logger_std_h.xml b/lib/kernel/doc/src/logger_std_h.xml
index 84f53fa9b1..73c19dbfdc 100644
--- a/lib/kernel/doc/src/logger_std_h.xml
+++ b/lib/kernel/doc/src/logger_std_h.xml
@@ -55,7 +55,7 @@
        is stored in a sub map with the key <c>config</c>, and can contain the
        following parameters:</p>
     <taglist>
-      <tag><marker id="type"/><c>type = standard_io | standard_error | file | {device, atom() | file:io_device()}</c></tag>
+      <tag><marker id="type"/><c>type = standard_io | standard_error | file | {device, io:device()}</c></tag>
       <item>
 	<p>Specifies the log destination.</p>
 	<p>The value is set when the handler is added, and it cannot
diff --git a/lib/kernel/test/logger_std_h_SUITE.erl b/lib/kernel/test/logger_std_h_SUITE.erl
index 602a79c78b..53dc4f516a 100644
--- a/lib/kernel/test/logger_std_h_SUITE.erl
+++ b/lib/kernel/test/logger_std_h_SUITE.erl
@@ -118,6 +118,7 @@ all() ->
     [add_remove_instance_tty,
      add_remove_instance_standard_io,
      add_remove_instance_standard_error,
+     add_remove_instance_custom_device,
      add_remove_instance_file1,
      add_remove_instance_file2,
      add_remove_instance_file3,
@@ -175,6 +176,11 @@ add_remove_instance_standard_io(_Config) ->
 add_remove_instance_standard_io(cleanup,_Config) ->
     logger_std_h_remove().
 
+add_remove_instance_custom_device(_Config) ->
+    add_remove_instance_nofile({device,user}).
+add_remove_instance_custom_device(cleanup,_Config) ->
+    logger_std_h_remove().
+
 add_remove_instance_standard_error(_Config) ->
     add_remove_instance_nofile(standard_error).
 add_remove_instance_standard_error(cleanup,_Config) ->
-- 
2.16.4