]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: Fix base64-unittest
authorEric Bollengier <eric@baculasystems.com>
Tue, 27 Oct 2020 15:52:43 +0000 (16:52 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:04 +0000 (09:03 +0100)
bacula/src/lib/base64.c

index f18d94cc8355f9753cd168c5f67ec8761efe9d5b..ca15029eafd1453e7b7153162af826a67862a3a7 100644 (file)
@@ -408,7 +408,7 @@ int main()
 
    /* test vectors from https://www.base64encode.org/ */
    const char * testdata1 = "Man is distinguished, not only by his reason, but ...";
-   const char * testvect1 = "TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCAuLi4=";
+   const char * testvect1 = "TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCAuLi4";
    // const char * filltest1  = "a";
    // const char * fillres1   = "YQ==";
    // const char * filltest2  = "ab";
@@ -427,7 +427,6 @@ int main()
 
    len = bin_to_base64(vvect1, strlen(testvect1) + 10, (char*)testdata1, strlen(testdata1), true);
    is(len, strlen(testvect1), "test bin_to_base64");
-   Dmsg1(0, "%s\n", testvect1);
    ok(strcmp(testvect1, vvect1) == 0, "test bin_to_base64 content");
 
    len = base64_to_bin(vdata1, strlen(testdata1) + 10, (char*)testvect1, strlen(testvect1));