Skip to content

Commit 8ebdc45

Browse files
committed
Fix some bugs with multithreaded tests:
* kmod tests must run exclusively, because they load and unload a module with a constant name. * A few tests were doing some variant of chdir, but weren't taking the CWD_MTX. * The kmod tests read files by path relative to CWD, so they need the CWD_MTX. But they don't need it exclusively, so convert the CWD_MTX into an RwLock. * Tests that do change the cwd need to change it back when they're done.
1 parent 4abe233 commit 8ebdc45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.cirrus.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ task:
4040
- cargo build
4141
- cargo build --release
4242
test_script:
43-
- cargo test -- --test-threads=1
44-
- cargo test --release -- --test-threads=1
43+
- cargo test
44+
- cargo test --release

0 commit comments

Comments
 (0)