Skip to content

Commit cc72b35

Browse files
authored
Fix wav test on Apple toolchain (#15506)
Summary: As titled. Differential Revision: D85998220
1 parent 7d18005 commit cc72b35

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

extension/llm/runner/test/targets.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
# All rights reserved.
33
#
44
# This source code is licensed under the BSD-style license found in the
5-
# LICENSE file in the root directory of this source tree.
6-
5+
# LICENSE file in the root directory of this source tree.)
76
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
87

98
def define_common_targets():
@@ -63,4 +62,5 @@ def define_common_targets():
6362
"//executorch/extension/llm/runner:multimodal_runner_lib",
6463
"//executorch/runtime/platform:platform",
6564
],
65+
platforms = ["CXX", "ANDROID"],
6666
)

extension/llm/runner/test/test_wav_loader.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,10 @@ TEST_F(WavLoaderTest, LoadAudioDataRejectsUnsupportedFormat) {
258258
const std::vector<uint8_t> wav_bytes =
259259
make_wav_bytes_with_format(0x0006, 16, sample_data);
260260
TempFile file(wav_bytes.data(), wav_bytes.size());
261-
262261
#if ET_LOG_ENABLED
263262
EXPECT_DEATH(
264263
{ load_wav_audio_data(file.path()); }, "Unsupported audio format");
265264
#else
266265
EXPECT_DEATH({ load_wav_audio_data(file.path()); }, "");
267-
#endif
266+
#endif // ET_LOG_ENABLED
268267
}

0 commit comments

Comments
 (0)