diff options
author | Xin Li <delphij@google.com> | 2023-08-14 15:37:18 -0700 |
---|---|---|
committer | Xin Li <delphij@google.com> | 2023-08-14 15:37:18 -0700 |
commit | fac5ddce1de06e255218e92087f4b22d3877ce3d (patch) | |
tree | 2d7dd0b86c11918ce2100af431094a7a82a0bd06 /test/binary_to_text_test.cpp | |
parent | bd7c191baf030e9e6a4ffcf0de8c3b634ef736b3 (diff) | |
parent | 9a1f3fd6689f35e0e10fef7761eb20b46213bda1 (diff) | |
download | SPIRV-Tools-fac5ddce1de06e255218e92087f4b22d3877ce3d.tar.gz |
Merge Android U (ab/10368041)tmp_amf_298295554
Bug: 291102124
Merged-In: I2cc412177a3f9cf4683531576786d46bcbb54430
Change-Id: I22c5032044980dd467ffca53d0427374cd8923d3
Diffstat (limited to 'test/binary_to_text_test.cpp')
-rw-r--r-- | test/binary_to_text_test.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/binary_to_text_test.cpp b/test/binary_to_text_test.cpp index df703e5d..44705f2a 100644 --- a/test/binary_to_text_test.cpp +++ b/test/binary_to_text_test.cpp @@ -101,6 +101,17 @@ TEST_F(BinaryToText, Default) { spvTextDestroy(text); } +TEST_F(BinaryToText, Print) { + spv_text text = nullptr; + spv_diagnostic diagnostic = nullptr; + ASSERT_EQ( + SPV_SUCCESS, + spvBinaryToText(context, binary->code, binary->wordCount, + SPV_BINARY_TO_TEXT_OPTION_PRINT, &text, &diagnostic)); + ASSERT_EQ(text, nullptr); + spvTextDestroy(text); +} + TEST_F(BinaryToText, MissingModule) { spv_text text; spv_diagnostic diagnostic = nullptr; |