Menu

#5 gawk-lmdb: basic test fails on macOS

v1.0_(example)
closed
nobody
None
1
2024-01-21
2022-01-13
No

On macOS 10.15.7 with Xcode 12.4, gawk-lmdb 1.1.1 encounters these errors when running the tests:

======== Starting lmdb tests ========
basic
./basic.ok _basic differ: char 957, line 44
make[1]: [basic] Error 1 (ignored)
dict
dict_cursor
======== Done with lmdb tests ========
1 TESTS FAILED
make[2]: *** [pass-fail] Error 1
for i in _* ; \
    do  \
        if [ "$i" != "_*" ]; then \
        echo ============== $i ============= ; \
        if [ -r ${i#_}.ok ]; then \
        diff -c ${i#_}.ok $i ; \
        else \
        diff -c ./${i#_}.ok  $i ; \
        fi ; \
        fi ; \
    done | more
============== _basic =============
*** basic.ok    2017-11-18 14:19:47.000000000 -0600
--- _basic  2022-01-12 23:19:03.000000000 -0600
***************
*** 41,45 ****
  mdb_env_open: argument #1 `fubar' does not map to a known env handle

  mdb_env_open(env, /dev/null)
! No such device
  mdb_env_open failed
--- 41,45 ----
  mdb_env_open: argument #1 `fubar' does not map to a known env handle

  mdb_env_open(env, /dev/null)
! Operation not supported by device
  mdb_env_open failed
make[1]: *** [check] Error 1

Looks like there's just a slight difference between the error message you were expecting and the error message you got.

Discussion

  • Andrew J. Schorr

    Hi, sorry for the slow response. As you say, this is most likely just a minor platform difference in error messages. Is this still a concern? I'm guessing the extension works OK. If it's causing trouble, we can try to get it fixed.

    Regards,
    Andy

     
  • Andrew J. Schorr

    • status: open --> closed
     
  • Andrew J. Schorr

    Thanks for the bug report. I patched this test case, and the new release 1.1.3 should work on MacOS.

     

Log in to post a comment.

MongoDB Logo MongoDB