It's a bug.  Fixed in MR !2428

Scott


On 1/4/20 1:27 PM, Smith, Barry F. wrote:

   Yes, since difference in floating point are considered not a change the 
REPLACE which only updates files with changes won't update them.

   I don't understand the output below, looks identical to me, why is it a diff?

   Scott, Perhaps when DIFF_NUMBERS=1 is given the REPLACE should replace if 
the numbers are different?

    Barry


On Jan 4, 2020, at 12:37 PM, Stefano Zampini <[email protected]> wrote:

I would like to overwrite floating point numbers in tests outputs. I remember 
in the past we could just pass REPLACE=1; it seems it is not possible with the 
current master.

I tried the command below (this is a test which produces different floating 
point values) with no success. Any suggestion on how we can do this?

$ make -f gmakefile.test test globsearch="mat*ex5_12_B" DIFF_NUMBERS=1 REPLACE=1
Using MAKEFLAGS: REPLACE=1 DIFF_NUMBERS=1 globsearch=mat*ex5_12_B
         TEST arch-debug/tests/counts/mat_tests-ex5_12_B.counts
  ok mat_tests-ex5_12_B
not ok diff-mat_tests-ex5_12_B # Error code: 1
#       42,43c42,43
#       < 0.
#       < 0.
#       ---
#       > 1.
#       > 1.
#       42,43c42,43
#       < 0.
#       < 0.
#       ---
#       > 1.
#       > 1.

# -------------
#   Summary
# -------------
# FAILED diff-mat_tests-ex5_12_B
# success 1/2 tests (50.0%)
# failed 1/2 tests (50.0%)
# todo 0/2 tests (0.0%)
# skip 0/2 tests (0.0%)
#
# Wall clock time for tests: 0 sec
# Approximate CPU time (not incl. build time): 0.05 sec
#
# To rerun failed tests:
#     /usr/bin/make -f gmakefile test test-fail=1
#
# Timing summary (actual test time / total CPU time):
#   mat_tests-ex5_12_B: 0.03 sec / 0.05 sec




--
Tech-X Corporation               [email protected]
5621 Arapahoe Ave, Suite A       Phone: (720) 974-1841
Boulder, CO 80303                Fax:   (303) 448-7756

Reply via email to