diff --git a/test/ios/test_support.mm b/test/ios/test_support.mm index bb8532b680..d3c9ee0c74 100644 --- a/test/ios/test_support.mm +++ b/test/ios/test_support.mm @@ -113,7 +113,7 @@ static absl::optional> g_metrics_to_plot; } } if (!g_webrtc_test_metrics_output_path.empty()) { - RTC_CHECK_NE(g_webrtc_test_metrics_output_path.find('/'), std::string::npos) + RTC_CHECK_EQ(g_webrtc_test_metrics_output_path.find('/'), std::string::npos) << "On iOS, --webrtc_test_metrics_output_path must only be a file name."; if ([outputDirectories count] != 0) { NSString *fileName = [NSString stringWithCString:g_webrtc_test_metrics_output_path.c_str()