Page MenuHomeFreeBSD

testsUmbrella
ActivePublic

Recent Activity

Jan 18 2024

bofh closed D43475: contrib/kyua: Merge vendor import.
Jan 18 2024, 4:28 PM · tests
markj added a comment to D43475: contrib/kyua: Merge vendor import.
In D43475#991182, @bofh wrote:

I don't see what's preventing you from pushing the kyua vendor branch to a github fork. And that's not necessary anyway, if you just push the merge commit somewhere, that's sufficient.

Here is the branch https://github.com/5u623l20/freebsd-src/tree/kyua-merge

Jan 18 2024, 2:58 PM · tests

Jan 17 2024

bofh added a comment to D43475: contrib/kyua: Merge vendor import.

I don't see what's preventing you from pushing the kyua vendor branch to a github fork. And that's not necessary anyway, if you just push the merge commit somewhere, that's sufficient.

Here is the branch https://github.com/5u623l20/freebsd-src/tree/kyua-merge

Jan 17 2024, 4:45 PM · tests
markj added a comment to D43475: contrib/kyua: Merge vendor import.
In D43475#991166, @bofh wrote:

Looks sane, thanks. I ran through the test suite locally with this change and didn't spot any new problems.

My tests did not yield any errors.

Let us know if you'd like review of the merge commit itself, i.e., push the merge somewhere that we can inspect it.

It's a bit difficult pushing a merge commit somewhere else specially Github. As the vendor trees are actually not present in a Github fork. If you want I can create custom branch and apply the patch manually and push it to a new branch if it helps.

Jan 17 2024, 4:11 PM · tests
bofh added inline comments to D43475: contrib/kyua: Merge vendor import.
Jan 17 2024, 3:37 PM · tests
bofh added a comment to D43475: contrib/kyua: Merge vendor import.

Looks sane, thanks. I ran through the test suite locally with this change and didn't spot any new problems.

My tests did not yield any errors.

Jan 17 2024, 3:34 PM · tests
markj added inline comments to D43475: contrib/kyua: Merge vendor import.
Jan 17 2024, 3:24 PM · tests
lwhsu added inline comments to D43475: contrib/kyua: Merge vendor import.
Jan 17 2024, 3:22 PM · tests
markj accepted D43475: contrib/kyua: Merge vendor import.

Looks sane, thanks. I ran through the test suite locally with this change and didn't spot any new problems.

Jan 17 2024, 2:47 PM · tests
bofh requested review of D43475: contrib/kyua: Merge vendor import.
Jan 17 2024, 10:58 AM · tests

Sep 16 2023

markj closed D41783: sockets: re-check socket state after call to pr_rcvd().
Sep 16 2023, 9:28 AM · committers, tests
markj added a comment to D41783: sockets: re-check socket state after call to pr_rcvd().

I've been able to trigger an sbwait() assertion failure in the receive path when running KTLS tests, but only when running tests in parallel in QEMU. I believe the problem is the following: KTLS introduces a state for received data wherein it is being decrypted but is not yet queued in the socket buffer. In this case (sb_tlsdcc != 0), we can end up calling sbwait() with CANTRECVMORE set because that sleep/wakeup mechanism is used to signal completion of decryption operations.

Sep 16 2023, 9:23 AM · committers, tests

Sep 10 2023

becker.greg_att.net added a comment to D41783: sockets: re-check socket state after call to pr_rcvd().

Thanks, Mark, I will send you two commits as requested. Thanks again for all your help!

Sep 10 2023, 5:20 PM · committers, tests

Sep 9 2023

glebius accepted D41783: sockets: re-check socket state after call to pr_rcvd().
Sep 9 2023, 5:12 PM · committers, tests
markj accepted D41783: sockets: re-check socket state after call to pr_rcvd().

Looks good to me. Thanks for working on this.

Sep 9 2023, 3:51 PM · committers, tests
becker.greg_att.net added inline comments to D41783: sockets: re-check socket state after call to pr_rcvd().
Sep 9 2023, 1:28 PM · committers, tests
becker.greg_att.net updated the diff for D41783: sockets: re-check socket state after call to pr_rcvd().

Reformat to ahere to suggested style...

Sep 9 2023, 1:27 PM · committers, tests
glebius added inline comments to D41783: sockets: re-check socket state after call to pr_rcvd().
Sep 9 2023, 5:14 AM · committers, tests

Sep 8 2023

becker.greg_att.net updated the summary of D41783: sockets: re-check socket state after call to pr_rcvd().
Sep 8 2023, 3:16 PM · committers, tests
becker.greg_att.net requested review of D41783: sockets: re-check socket state after call to pr_rcvd().
Sep 8 2023, 3:13 PM · committers, tests

Apr 20 2023

rodrigc removed a member for tests: rodrigc.
Apr 20 2023, 6:46 AM

Nov 18 2021

pnagato_protonmail.com added a comment to D26220: Improve test coverage for sbuf.

@ngie @lwhsu Hello, I found this on https://wiki.freebsd.org/JuniorJobs, Please close this. This is more involved than what i could comprehend from that page.

Nov 18 2021, 8:13 AM · tests

Nov 11 2021

mckusick closed D32736: Fix geom tests after argument changes.
Nov 11 2021, 8:12 PM · tests
kp added a comment to D32736: Fix geom tests after argument changes.

Sorry for my long delay.

I concur that it is my change that should be fixed, not these tests.

I believe that the correct fix is this:

diff --git a/sbin/geom/core/geom.c b/sbin/geom/core/geom.c
index 2e0d8683df49..0202be9a063e 100644
--- a/sbin/geom/core/geom.c
+++ b/sbin/geom/core/geom.c
@@ -445,7 +445,7 @@ set_flags(struct g_command *cmd)
 {
        unsigned flags = 0;

-       if ((cmd->gc_flags & G_FLAG_VERBOSE) != 0)
+       if ((cmd->gc_flags & G_FLAG_VERBOSE) != 0 && verbose)
                flags |= G_FLAG_VERBOSE;

        return (flags);
Nov 11 2021, 12:56 PM · tests

Nov 10 2021

mckusick added a comment to D32736: Fix geom tests after argument changes.

Sorry for my long delay.

Nov 10 2021, 11:53 PM · tests

Nov 4 2021

kp added a comment to D32736: Fix geom tests after argument changes.

Shouldn't the root cause be fixed (geom be revert back to non-verbose mode by default) in place of fixing the regression test ?

Nov 4 2021, 8:52 PM · tests
olivier added a comment to D32736: Fix geom tests after argument changes.

Shouldn't the root cause be fixed (geom be revert back to non-verbose mode by default) in place of fixing the regression test ?

Nov 4 2021, 7:03 PM · tests

Oct 29 2021

lwhsu added a comment to D32736: Fix geom tests after argument changes.

I am also checking this, but what I haven't figured out is that it seems these test cases don't execute geom utility commands with -v so it should not expect the output from verbose mode. Is there anything I missed that those test cases do enable the verbose flag?

Oct 29 2021, 5:34 PM · tests
asomers added a comment to D32736: Fix geom tests after argument changes.

Do these utilities always run in verbose mode now?

Oct 29 2021, 5:27 PM · tests
brd requested review of D32736: Fix geom tests after argument changes.
Oct 29 2021, 5:18 PM · tests

Mar 12 2021

arichardson added a member for tests: arichardson.
Mar 12 2021, 5:17 PM

Jan 12 2021

asomers closed D23193: ICMP checksum test: Fix for big endian.
Jan 12 2021, 2:10 AM · tests

Jan 11 2021

asomers added a comment to D23193: ICMP checksum test: Fix for big endian.

This review was approved in March last year. It seems all issues have been solved. Could anyone commit this?

Jan 11 2021, 7:05 PM · tests
fernando.valle_eldorado.org.br added a comment to D23193: ICMP checksum test: Fix for big endian.

This review was approved in March last year. It seems all issues have been solved. Could anyone commit this?

Jan 11 2021, 6:33 PM · tests

Oct 30 2020

ngie requested changes to D26220: Improve test coverage for sbuf.

This change does more than advertised in the CR description (which doesn't describe as much as the commit message should).

Oct 30 2020, 7:49 PM · tests
ngie updated subscribers of D26220: Improve test coverage for sbuf.
Oct 30 2020, 7:23 PM · tests

Oct 29 2020

lwhsu added a reviewer for D26220: Improve test coverage for sbuf: ngie.
Oct 29 2020, 2:40 AM · tests

Oct 13 2020

pnagato_protonmail.com added a comment to D26220: Improve test coverage for sbuf.

@jmg ping, please review..

Oct 13 2020, 9:46 PM · tests

Sep 19 2020

pnagato_protonmail.com added a comment to D26220: Improve test coverage for sbuf.

@imp if the test binary is run directly like this. We can see the assertion output.

./sbuf_core_test sbuf_new_negative_test_non_user_flags

sbuf_core_test: WARNING: Running test cases outside of kyua(1) is unsupported
sbuf_core_test: WARNING: No isolation nor timeout control is being applied; you may get unexpected failures; see atf-test-case(4)
expected_death: Non user flags cannot be specified
Assertion failed: (((flags & ~0x0000ffff) == 0)), function sbuf_new, file /usr/src/sys/kern/subr_sbuf.c, line 233.
Abort (core dumped)

@imp tried the do while.. & assert. In both cases kyua does not print to log file. I see the msg only when the binary is run standalone or a single test case is run. For e.g.

kyua debug sbuf_core_test:sbuf_new_negative_test
Assertion failed: ((length >= 0)), function sbuf_new, file /usr/src/sys/kern/subr_sbuf.c, line 231.
Process with PID 29505 exited with signal 6 and dumped core; attempting to gather stack trace
Cannot find GDB binary; builtin was 'gdb'
sbuf_core_test:sbuf_new_negative_test  ->  expected_failure: Buffer length cannot be negative

@imp I removed the output from the kyua log from this comment.

Sep 19 2020, 2:46 PM · tests

Sep 16 2020

pnagato_protonmail.com added a comment to D26220: Improve test coverage for sbuf.

@imp if the test binary is run directly like this. We can see the assertion output.

./sbuf_core_test sbuf_new_negative_test_non_user_flags

sbuf_core_test: WARNING: Running test cases outside of kyua(1) is unsupported
sbuf_core_test: WARNING: No isolation nor timeout control is being applied; you may get unexpected failures; see atf-test-case(4)
expected_death: Non user flags cannot be specified
Assertion failed: (((flags & ~0x0000ffff) == 0)), function sbuf_new, file /usr/src/sys/kern/subr_sbuf.c, line 233.
Abort (core dumped)
Sep 16 2020, 8:41 PM · tests
pnagato_protonmail.com added a comment to D26220: Improve test coverage for sbuf.

@imp if the test binary is run directly like this. We can see the assertion output.

Sep 16 2020, 7:31 AM · tests
pnagato_protonmail.com added a comment to D26220: Improve test coverage for sbuf.

atf_tc_expect_death("....") will print the reason. For e.g.

Sep 16 2020, 7:19 AM · tests
imp added a comment to D26220: Improve test coverage for sbuf.
In D26220#588231, @jmg wrote:

@jmg @imp I have seen other places where KASSERT was re-defined as

#define	KASSERT(exp,msg) assert((exp))

I think using assert should be used. It doesn't pollute stdout, generates a core dump, and is more obvious that there was a failure.

Thanks.

Sep 16 2020, 7:15 AM · tests
pnagato_protonmail.com added a comment to D26220: Improve test coverage for sbuf.

@jmg Please review.

Sep 16 2020, 7:15 AM · tests
pnagato_protonmail.com updated the diff for D26220: Improve test coverage for sbuf.

Add negative tests for sbuf_new

Sep 16 2020, 7:13 AM · tests

Sep 15 2020

jmg added a comment to D26220: Improve test coverage for sbuf.

@jmg @imp I have seen other places where KASSERT was re-defined as

#define	KASSERT(exp,msg) assert((exp))
Sep 15 2020, 6:41 PM · tests

Sep 12 2020

pnagato_protonmail.com added a comment to D26220: Improve test coverage for sbuf.
In D26220#584584, @jmg wrote:
In D26220#584521, @imp wrote:

@jmg @imp Need your input how to proceed on the sbuf_negative test.

I'm having trouble understanding its purpose. Maybe you could give a one or two sentence summary of what it should test?

@imp I am assuming the sbuf_new_negative_test is supposed to test for cases for which sbuf_new fails to create a sbuf.

From sys/kern/subr_sbuf.c

	KASSERT(length >= 0,
	    ("attempt to create an sbuf of negative length (%d)", length));
	KASSERT((flags & ~SBUF_USRFLAGMSK) == 0,
	    ("%s called with invalid flags", __func__));

or when SBMALLOC fails..

So, looking at the KASSERT, we may want to change how KASSERTs are compiled for userland. Right now it gets compiled to nothing, which means that there is nothing preventing userland from passing negative lengths and the like. We may want to think about making KASSERT call abort, but then some KASSERTs (like those in sbuf_new quoted above) need to be changed because aborting when length, which might be a user defined parameter seems like a bad idea.

Also, it looks like sbuf.9 doesn't document the KASSERT restrictions in sbuf_new, so a userland caller may accidentally generate a corrupted sbuf.

As for how to make sbuf fail due to malloc, I don't know.

@jmg i will skip the sbuf_new_negative_test for now. Please review the other tests.

Sep 12 2020, 5:43 PM · tests

Sep 3 2020

pnagato_protonmail.com added a comment to D26220: Improve test coverage for sbuf.
In D26220#584584, @jmg wrote:
In D26220#584521, @imp wrote:

@jmg @imp Need your input how to proceed on the sbuf_negative test.

I'm having trouble understanding its purpose. Maybe you could give a one or two sentence summary of what it should test?

@imp I am assuming the sbuf_new_negative_test is supposed to test for cases for which sbuf_new fails to create a sbuf.

From sys/kern/subr_sbuf.c

	KASSERT(length >= 0,
	    ("attempt to create an sbuf of negative length (%d)", length));
	KASSERT((flags & ~SBUF_USRFLAGMSK) == 0,
	    ("%s called with invalid flags", __func__));

or when SBMALLOC fails..

So, looking at the KASSERT, we may want to change how KASSERTs are compiled for userland. Right now it gets compiled to nothing, which means that there is nothing preventing userland from passing negative lengths and the like. We may want to think about making KASSERT call abort, but then some KASSERTs (like those in sbuf_new quoted above) need to be changed because aborting when length, which might be a user defined parameter seems like a bad idea.

Also, it looks like sbuf.9 doesn't document the KASSERT restrictions in sbuf_new, so a userland caller may accidentally generate a corrupted sbuf.

As for how to make sbuf fail due to malloc, I don't know.

Sep 3 2020, 7:27 AM · tests
pnagato_protonmail.com updated the diff for D26220: Improve test coverage for sbuf.

Skip sbuf_new_negative_test,implement sbuf_new_positive_test

Sep 3 2020, 7:25 AM · tests

Sep 2 2020

jmg added a comment to D26220: Improve test coverage for sbuf.
In D26220#584521, @imp wrote:

@jmg @imp Need your input how to proceed on the sbuf_negative test.

I'm having trouble understanding its purpose. Maybe you could give a one or two sentence summary of what it should test?

@imp I am assuming the sbuf_new_negative_test is supposed to test for cases for which sbuf_new fails to create a sbuf.

From sys/kern/subr_sbuf.c

	KASSERT(length >= 0,
	    ("attempt to create an sbuf of negative length (%d)", length));
	KASSERT((flags & ~SBUF_USRFLAGMSK) == 0,
	    ("%s called with invalid flags", __func__));

or when SBMALLOC fails..

Sep 2 2020, 6:50 PM · tests