The branch main has been updated by kp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=e2d2aadc292a62064a61e110875db224cf533dc4

commit e2d2aadc292a62064a61e110875db224cf533dc4
Author:     Kristof Provost <k...@freebsd.org>
AuthorDate: 2025-06-23 13:18:24 +0000
Commit:     Kristof Provost <k...@freebsd.org>
CommitDate: 2025-06-27 14:55:16 +0000

    pfctl tests: test line number reporting in include files
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sbin/pfctl/tests/files/pf1070.fail    | 1 +
 sbin/pfctl/tests/files/pf1070.in      | 2 ++
 sbin/pfctl/tests/files/pf1070.include | 2 ++
 sbin/pfctl/tests/pfctl_test_list.inc  | 1 +
 4 files changed, 6 insertions(+)

diff --git a/sbin/pfctl/tests/files/pf1070.fail 
b/sbin/pfctl/tests/files/pf1070.fail
new file mode 100644
index 000000000000..60b56d9da2b9
--- /dev/null
+++ b/sbin/pfctl/tests/files/pf1070.fail
@@ -0,0 +1 @@
+pf1070.include:2: syntax error
diff --git a/sbin/pfctl/tests/files/pf1070.in b/sbin/pfctl/tests/files/pf1070.in
new file mode 100644
index 000000000000..42b874d4d6f4
--- /dev/null
+++ b/sbin/pfctl/tests/files/pf1070.in
@@ -0,0 +1,2 @@
+pass in
+include pf1070.include
diff --git a/sbin/pfctl/tests/files/pf1070.include 
b/sbin/pfctl/tests/files/pf1070.include
new file mode 100644
index 000000000000..09c3755dbe28
--- /dev/null
+++ b/sbin/pfctl/tests/files/pf1070.include
@@ -0,0 +1,2 @@
+block out
+invalidline
diff --git a/sbin/pfctl/tests/pfctl_test_list.inc 
b/sbin/pfctl/tests/pfctl_test_list.inc
index f798fedb70a8..f87d8ba6bc73 100644
--- a/sbin/pfctl/tests/pfctl_test_list.inc
+++ b/sbin/pfctl/tests/pfctl_test_list.inc
@@ -178,3 +178,4 @@ PFCTL_TEST(1066, "no rdr")
 PFCTL_TEST_FAIL(1067, "route-to can't be used on block rules")
 PFCTL_TEST(1068, "max-pkt-rate")
 PFCTL_TEST(1069, "max-pkt-size")
+PFCTL_TEST_FAIL(1070, "include line number")

Reply via email to