Re: [HACKERS] Failure in commit_ts tap tests - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] Failure in commit_ts tap tests
Date
Msg-id 21212.1484939708@sss.pgh.pa.us
Whole thread Raw
In response to [HACKERS] Failure in commit_ts tap tests  (Pavan Deolasee <pavan.deolasee@gmail.com>)
Responses Re: [HACKERS] Failure in commit_ts tap tests
List pgsql-hackers
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Hmm.  The test works fine for me, even if it should be obvious that the
> use of the != operator is wrong.  I don't understand why it causes a
> failure only for you.

Even more interesting, the warning appears as-expected in stripped down
test cases, eg

$ perl -e 'use warnings; use Test::More; ok("Foo" ne "bar", "ok");'
ok 1 - ok
# Tests were run but no plan was declared and done_testing() was not seen.

$ perl -e 'use warnings; use Test::More; ok("Foo" != "bar", "ok");'
Argument "bar" isn't numeric in numeric ne (!=) at -e line 1.
Argument "Foo" isn't numeric in numeric ne (!=) at -e line 1.
not ok 1 - ok
#   Failed test 'ok'
#   at -e line 1.
# Tests were run but no plan was declared and done_testing() was not seen.

I really don't understand why this complains but the same perl version
is happy with (the previous coding in) 004_restart.pl.  Perl bug?
        regards, tom lane



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: [HACKERS] Failure in commit_ts tap tests
Next
From: Kevin Grittner
Date:
Subject: Re: [HACKERS] delta relations in AFTER triggers