Make line buffering test less flaky
This commit is contained in:
+9
-5
@@ -227,13 +227,17 @@ class buffered_file {
|
||||
|
||||
FMT_API auto descriptor() const -> int;
|
||||
|
||||
void vprint(string_view format_str, format_args args) {
|
||||
fmt::vprint(file_, format_str, args);
|
||||
void vprint(string_view fmt, format_args args) {
|
||||
fmt::vprint(file_, fmt, args);
|
||||
}
|
||||
void vprint_locked(string_view fmt, format_args args) {
|
||||
fmt::vprint_locked(file_, fmt, args);
|
||||
}
|
||||
|
||||
template <typename... Args>
|
||||
inline void print(string_view format_str, const Args&... args) {
|
||||
vprint(format_str, fmt::make_format_args(args...));
|
||||
template <typename... T>
|
||||
inline void print(string_view fmt, const T&... args) {
|
||||
const auto& vargs = fmt::make_format_args(args...);
|
||||
detail::is_locking<T...>() ? vprint(fmt, vargs) : vprint_locked(fmt, vargs);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user