This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=43391b6f541ff4f637571a24dad7f4792d784720

The following commit(s) were added to refs/heads/main by this push:
     new 43391b6f5 test: Use actual octal numbers for chmod() calls
43391b6f5 is described below

commit 43391b6f541ff4f637571a24dad7f4792d784720 (HEAD -> main)
Author: Guillem Jover <[email protected]>
AuthorDate: Fri Mar 25 11:09:58 2022 +0100

    test: Use actual octal numbers for chmod() calls
    
    This was making the test suite fail on GNU/kFreeBSD.
---
 lib/dpkg/t/t-file.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/dpkg/t/t-file.c b/lib/dpkg/t/t-file.c
index ebba306bb..0004df409 100644
--- a/lib/dpkg/t/t-file.c
+++ b/lib/dpkg/t/t-file.c
@@ -88,9 +88,9 @@ test_file_slurp(void)
 
        test_fail(file_is_exec(test_dir));
        test_fail(file_is_exec(test_file));
-       test_pass(chmod(test_file, 755) == 0);
+       test_pass(chmod(test_file, 0755) == 0);
        test_pass(file_is_exec(test_file));
-       test_pass(chmod(test_file, 750) == 0);
+       test_pass(chmod(test_file, 0750) == 0);
        test_pass(file_is_exec(test_file));
 
        test_pass(unlink(test_file) == 0);

-- 
Dpkg.Org's dpkg

Reply via email to