fix printf test

This commit is contained in:
nora 2023-09-30 22:52:46 +02:00
parent 1827bd19c9
commit 5d8814a9eb

View file

@ -43,12 +43,12 @@ mod tests {
#[test] #[test]
#[cfg_attr(miri, ignore = "variadic")] #[cfg_attr(miri, ignore = "variadic")]
fn empty_format() { fn empty_format() {
unsafe { test_printf("\0", cstr!("")) } unsafe { test_printf("", cstr!("")) }
} }
#[test] #[test]
#[cfg_attr(miri, ignore = "variadic")] #[cfg_attr(miri, ignore = "variadic")]
fn constant_string() { fn constant_string() {
unsafe { test_printf("hello, world\0", cstr!("hello, world")) } unsafe { test_printf("hello, world", cstr!("hello, world")) }
} }
} }