aboutsummaryrefslogtreecommitdiff
path: root/test/binary_to_text_test.cpp
diff options
context:
space:
mode:
authorXin Li <delphij@google.com>2023-08-14 15:37:18 -0700
committerXin Li <delphij@google.com>2023-08-14 15:37:18 -0700
commitfac5ddce1de06e255218e92087f4b22d3877ce3d (patch)
tree2d7dd0b86c11918ce2100af431094a7a82a0bd06 /test/binary_to_text_test.cpp
parentbd7c191baf030e9e6a4ffcf0de8c3b634ef736b3 (diff)
parent9a1f3fd6689f35e0e10fef7761eb20b46213bda1 (diff)
downloadSPIRV-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.cpp11
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;