You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2023/11/27 19:53:38 UTC

(couchdb) 22/26: Fix missing eunit include

This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch 3.3.x
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 24a8b6aff65d005b1e628512b05117b8efc87bda
Author: Nick Vatamaniuc <va...@gmail.com>
AuthorDate: Tue Oct 24 00:22:11 2023 -0400

    Fix missing eunit include
    
    The else part of the ifdef needs the eunit include file as well, otherwise the
    eunit-only tests won't run in that module.
---
 src/couch/test/eunit/couch_ejson_compare_tests.erl | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/couch/test/eunit/couch_ejson_compare_tests.erl b/src/couch/test/eunit/couch_ejson_compare_tests.erl
index ae4a5ff7c..df982c12c 100644
--- a/src/couch/test/eunit/couch_ejson_compare_tests.erl
+++ b/src/couch/test/eunit/couch_ejson_compare_tests.erl
@@ -163,6 +163,10 @@ zero_width_list() ->
 zero_width_chars() ->
     oneof([16#200B, 16#200C, 16#200D]).
 
+-else.
+
+-include_lib("couch/include/couch_eunit.hrl").
+
 -endif.
 
 % Regular EUnit tests