logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

chrony-4.2-test-mawk.patch (1219B)


  1. https://git.tuxfamily.org/chrony/chrony.git/patch/?id=b61cbed6895fcd3eae4c8458a69995870a22a5e0
  2. From: Vincent Blut <vincent.debian@free.fr>
  3. Date: Wed, 12 Jan 2022 18:08:34 +0100
  4. Subject: test: ensure awk commands in 008-ntpera return an integer
  5. Some awk interpreters (e.g. mawk) print long integers in exponential
  6. notation skewing the test result.
  7. --- a/test/simulation/008-ntpera
  8. +++ b/test/simulation/008-ntpera
  9. @@ -29,7 +29,7 @@ echo "$ntp_start" | grep -q '-' && test_skip
  10. for time_offset in -1e-1 1e-1; do
  11. for start_offset in 0 "2^32 - $limit"; do
  12. - export CLKNETSIM_START_DATE=$(awk "BEGIN {print $ntp_start + $start_offset}")
  13. + export CLKNETSIM_START_DATE=$(awk "BEGIN {printf \"%.0f\", $ntp_start + $start_offset}")
  14. run_test || test_fail
  15. check_chronyd_exit || test_fail
  16. check_source_selection || test_fail
  17. @@ -38,7 +38,7 @@ for time_offset in -1e-1 1e-1; do
  18. done
  19. for start_offset in -$limit "2^32"; do
  20. - export CLKNETSIM_START_DATE=$(awk "BEGIN {print $ntp_start + $start_offset}")
  21. + export CLKNETSIM_START_DATE=$(awk "BEGIN {printf \"%.0f\", $ntp_start + $start_offset}")
  22. run_test || test_fail
  23. check_chronyd_exit || test_fail
  24. check_source_selection || test_fail
  25. cgit v0.10.2