xref: /aosp_15_r20/system/logging/rust/tests/multiple_init.rs (revision 598139dc91b21518d67c408eaea2644226490971)
1 //! Do not put multiple tests in this file. Tests in the same file run in the
2 //! same executable, so if there are several tests in one file, only one test
3 //! will successfully be able to initialize the logger.
4 
5 #[test]
multiple_init()6 fn multiple_init() {
7     let first_init = logger::init(Default::default());
8     let second_init = logger::init(Default::default());
9 
10     assert!(first_init);
11     assert!(!second_init);
12 }
13