<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
  img {
    max-width: 100%;
    height: auto;
  }
  p.details {
    font-style:italic;
    color:#777
  }
  .footer p {
    font-size:small;
    color:#777
  }
  pre.commit-message {
    white-space: pre-wrap;
  }
  .file-stats a {
    text-decoration: none;
  }
  .file-stats .new-file {
    color: #090;
  }
  .file-stats .deleted-file {
    color: #B00;
  }
</style>
<body>
<div class='content'>
<h3>Amar Takhar pushed to branch master at <a href="https://gitlab.com/NTPsec/ntpsec">NTPsec / ntpsec</a></h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://gitlab.com/NTPsec/ntpsec/commit/3e94730968c369761724f819b349b3b451e8f132">3e947309</a></strong>
<div>
<span>by Amar Takhar</span>
<i>at 2015-12-04T16:35:24Z</i>
</div>
<pre class='commit-message'>Fix failed tests in ntpd/leapsec.c.</pre>
</li>
</ul>
<h4>2 changed files:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
tests/ntpd/leapsec.c
</a>
</li>
<li class='file-stats'>
<a href='#diff-1'>
tests/wscript
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/3e94730968c369761724f819b349b3b451e8f132#diff-0'>
<strong>
tests/ntpd/leapsec.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/tests/ntpd/leapsec.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/tests/ntpd/leapsec.c
</span><span style="color: #aaaaaa">@@ -445,7 +445,7 @@ TEST(leapsec, ls2009faraway) {
</span>           bool           rc;
        leap_result_t  qr;
 
<span style="color: #000000;background-color: #ffdddd">-        rc = setup_load_table(leap1, 1);
</span><span style="color: #000000;background-color: #ddffdd">+   rc = setup_load_table(leap1, 0);
</span>   TEST_ASSERT_EQUAL(1, rc);
 
        // test 60 days before leap. Nothing scheduled or indicated.
<span style="color: #aaaaaa">@@ -462,7 +462,7 @@ TEST(leapsec, ls2009weekaway) {
</span>   bool           rc;
        leap_result_t  qr;
 
<span style="color: #000000;background-color: #ffdddd">-        rc = setup_load_table(leap1, 1);
</span><span style="color: #000000;background-color: #ddffdd">+   rc = setup_load_table(leap1, 0);
</span>   TEST_ASSERT_EQUAL(1, rc);
 
        // test 7 days before leap. Leap scheduled, but not yet indicated.
<span style="color: #aaaaaa">@@ -479,7 +479,7 @@ TEST(leapsec, ls2009houraway) {
</span>   bool           rc;
        leap_result_t  qr;
 
<span style="color: #000000;background-color: #ffdddd">-        rc = setup_load_table(leap1, 1);
</span><span style="color: #000000;background-color: #ddffdd">+   rc = setup_load_table(leap1, 0);
</span>   TEST_ASSERT_EQUAL(1, rc);
 
        // test 1 hour before leap. 61 true seconds to go.
<span style="color: #aaaaaa">@@ -496,7 +496,7 @@ TEST(leapsec, ls2009secaway) {
</span>   bool           rc;
        leap_result_t  qr;
 
<span style="color: #000000;background-color: #ffdddd">-        rc = setup_load_table(leap1, 1);
</span><span style="color: #000000;background-color: #ddffdd">+   rc = setup_load_table(leap1, 0);
</span>   TEST_ASSERT_TRUE(rc);
 
        // test 1 second before leap (last boundary...) 2 true seconds to go.
<span style="color: #aaaaaa">@@ -513,7 +513,7 @@ TEST(leapsec, ls2009onspot) {
</span>   bool           rc;
        leap_result_t  qr;
 
<span style="color: #000000;background-color: #ffdddd">-        rc = setup_load_table(leap1, 1);
</span><span style="color: #000000;background-color: #ddffdd">+   rc = setup_load_table(leap1, 0);
</span>   TEST_ASSERT_TRUE(rc);
 
        // test on-spot: treat leap second as already gone.
<span style="color: #aaaaaa">@@ -644,7 +644,7 @@ TEST(leapsec, ls2009seqInsElectric) {
</span>   bool           rc;
        leap_result_t  qr;
 
<span style="color: #000000;background-color: #ffdddd">-        rc = setup_load_table(leap1, 1);
</span><span style="color: #000000;background-color: #ddffdd">+   rc = setup_load_table(leap1, 0);
</span>   TEST_ASSERT_TRUE(rc);
        leapsec_electric(1);
        TEST_ASSERT_TRUE(leapsec_electric(-1));
<span style="color: #aaaaaa">@@ -687,7 +687,7 @@ TEST(leapsec, ls2009seqInsDumb) {
</span>   bool           rc;
        leap_result_t  qr;
 
<span style="color: #000000;background-color: #ffdddd">-        rc = setup_load_table(leap1, 1);
</span><span style="color: #000000;background-color: #ddffdd">+   rc = setup_load_table(leap1, 0);
</span>   TEST_ASSERT_TRUE(rc);
        TEST_ASSERT_EQUAL(0, leapsec_electric(-1));
 
<span style="color: #aaaaaa">@@ -735,7 +735,7 @@ TEST(leapsec, ls2009seqDelElectric) {
</span>   bool           rc;
        leap_result_t  qr;
 
<span style="color: #000000;background-color: #ffdddd">-        rc = setup_load_table(leap3, 1);
</span><span style="color: #000000;background-color: #ddffdd">+   rc = setup_load_table(leap3, 0);
</span>   TEST_ASSERT_TRUE(rc);
        leapsec_electric(1);
        TEST_ASSERT_TRUE(leapsec_electric(-1));
<span style="color: #aaaaaa">@@ -778,7 +778,7 @@ TEST(leapsec, ls2009seqDelDumb) {
</span>   bool           rc;
        leap_result_t  qr;
 
<span style="color: #000000;background-color: #ffdddd">-        rc = setup_load_table(leap3, 1);
</span><span style="color: #000000;background-color: #ddffdd">+   rc = setup_load_table(leap3, 0);
</span>   TEST_ASSERT_TRUE(rc);
        TEST_ASSERT_EQUAL(0, leapsec_electric(-1));
 
<span style="color: #aaaaaa">@@ -820,7 +820,7 @@ TEST(leapsec, ls2012seqInsElectric) {
</span>   bool           rc;
        leap_result_t  qr;
 
<span style="color: #000000;background-color: #ffdddd">-        rc = setup_load_table(leap1, 1);
</span><span style="color: #000000;background-color: #ddffdd">+   rc = setup_load_table(leap1, 0);
</span>   TEST_ASSERT_TRUE(rc);
        leapsec_electric(1);
        TEST_ASSERT_TRUE(leapsec_electric(-1));
<span style="color: #aaaaaa">@@ -863,7 +863,7 @@ TEST(leapsec, ls2012seqInsDumb) {
</span>   bool           rc;
        leap_result_t  qr;
 
<span style="color: #000000;background-color: #ffdddd">-        rc = setup_load_table(leap1, 1);
</span><span style="color: #000000;background-color: #ddffdd">+   rc = setup_load_table(leap1, 0);
</span>   TEST_ASSERT_TRUE(rc);
        TEST_ASSERT_EQUAL(0, leapsec_electric(-1));
 
</code></pre>

<br>
</li>
<li id='diff-1'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/3e94730968c369761724f819b349b3b451e8f132#diff-1'>
<strong>
tests/wscript
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/tests/wscript
</span><span style="color: #000000;background-color: #ddffdd">+++ b/tests/wscript
</span><span style="color: #aaaaaa">@@ -104,10 +104,9 @@ def build(ctx):
</span>   )
 
 
<span style="color: #000000;background-color: #ffdddd">-"""
</span>   ntpd_source = [
                "ntpd/leapsec.c"
<span style="color: #000000;background-color: #ffdddd">-        ] + common_source + ["common/caltime.c"]
</span><span style="color: #000000;background-color: #ddffdd">+   ] + common_source
</span> 
        ctx.ntp_test(
                features    = "c cprogram bld_include src_include libisc_include test",
<span style="color: #aaaaaa">@@ -122,4 +121,3 @@ def build(ctx):
</span>           use                     = "ntpd_lib libntpd_obj unity ntp isc M PTHREAD CRYPTO RT",
         source      = ntpd_source,
        )
<span style="color: #000000;background-color: #ffdddd">-"""
</span></code></pre>

<br>
</li>

</div>
<div class='footer' style='margin-top: 10px;'>
<p>

<br>
<a href="https://gitlab.com/NTPsec/ntpsec/commit/3e94730968c369761724f819b349b3b451e8f132">View it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://gitlab.com/NTPsec/ntpsec/commit/3e94730968c369761724f819b349b3b451e8f132"}}</script>
</p>
</div>
</body>
</html>