From a1ae33d81a365d503fcb5cc89bc6b5ac9775a590 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Mon, 12 Sep 2022 16:15:15 +1000 Subject: [PATCH] Improve comment in `testsuite/jobserver.rs` Signed-off-by: Jiahao XU --- tests/testsuite/jobserver.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/testsuite/jobserver.rs b/tests/testsuite/jobserver.rs index 235fb65d42ab..8dbcf1341cc2 100644 --- a/tests/testsuite/jobserver.rs +++ b/tests/testsuite/jobserver.rs @@ -12,8 +12,9 @@ const EXE_CONTENT: &str = r#" use std::env; fn main() { - // Copied from jobslot::Client::from_env let var = env::var("CARGO_MAKEFLAGS").unwrap(); + // Copied from jobslot::Client::from_env + // It uses MIT + Apache, so it is OK to reuse their code here. let val = var .split_ascii_whitespace() .filter_map(|arg| { @@ -22,6 +23,7 @@ fn main() { }) .find(|s| !s.is_empty()) .unwrap(); + // end here validate(val); }